Udostępnij za pośrednictwem


UnsafeStateException.Reasons Property

Definition

Gets the reasons the operation is unsafe.

public System.Collections.Generic.IList<Java.Lang.Integer> Reasons { [Android.Runtime.Register("getReasons", "()Ljava/util/List;", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getReasons", "()Ljava/util/List;", "", ApiSince=31)>]
member this.Reasons : System.Collections.Generic.IList<Java.Lang.Integer>

Property Value

currently, only valid reason is android.app.admin.DevicePolicyManager#OPERATION_SAFETY_REASON_DRIVING_DISTRACTION.

Attributes

Remarks

Gets the reasons the operation is unsafe.

Java documentation for android.app.admin.UnsafeStateException.getReasons().

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