共用方式為


Control.StatusOk Field

Definition

Caution

This constant will be removed in the future version. Use Android.Service.Controls.ControlStatus enum directly instead of this field.

Used to indicate that the state of the device was successfully retrieved.

[Android.Runtime.Register("STATUS_OK", ApiSince=30)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Service.Controls.ControlStatus enum directly instead of this field.", true)]
public const Android.Service.Controls.ControlStatus StatusOk = 1;
[<Android.Runtime.Register("STATUS_OK", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Service.Controls.ControlStatus enum directly instead of this field.", true)>]
val mutable StatusOk : Android.Service.Controls.ControlStatus

Field Value

Value = 1

Implements

Attributes

Remarks

Used to indicate that the state of the device was successfully retrieved. This includes all scenarios where the device may have a warning for the user, such as "Lock jammed", or "Vacuum stuck". Any information for the user should be set through StatefulBuilder#setStatusText.

Java documentation for android.service.controls.Control.STATUS_OK.

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