Android.Preferences.SwitchPreference.SetSwitchTextOn Method
Set the text displayed on the switch widget in the on state.

Syntax

[Android.Runtime.Register("setSwitchTextOn", "(I)V", "GetSetSwitchTextOn_IHandler")]
public virtual void SetSwitchTextOn (int resId)

Parameters

resId
The text as a string resource ID

Remarks

Set the text displayed on the switch widget in the on state. This should be a very short string; one word if possible.

[Android Documentation]

Requirements

Namespace: Android.Preferences
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14