TogglePickerInspectorView

constructor(@NonNull context: Context, @NonNull label: String, @NonNull onValue: String, @NonNull offValue: String, defaultState: Boolean, @Nullable listener: TogglePickerInspectorView.TogglePickerListener)

Construct the TogglePickerInspectorView.

Parameters

context

The context to use.

label

The label to describe the value that will be picked.

onValue

The text describing the on state.

offValue

The text describing the off state.

defaultState

The default state of the toggle.