다음을 통해 공유


RemoteViews.SetBoolean(Int32, String, Boolean) Method

Definition

Call a method taking one boolean on a view in the layout for this RemoteViews.

[Android.Runtime.Register("setBoolean", "(ILjava/lang/String;Z)V", "GetSetBoolean_ILjava_lang_String_ZHandler")]
public virtual void SetBoolean (int viewId, string? methodName, bool value);
[<Android.Runtime.Register("setBoolean", "(ILjava/lang/String;Z)V", "GetSetBoolean_ILjava_lang_String_ZHandler")>]
abstract member SetBoolean : int * string * bool -> unit
override this.SetBoolean : int * string * bool -> unit

Parameters

viewId
Int32

The id of the view on which to call the method.

methodName
String

The name of the method to call.

value
Boolean

The value to pass to the method.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setBoolean(int, java.lang.String, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to