Share via


DevicePolicyIdentifiers.GetIdentifierForUserRestriction(String) Method

Definition

Returns a string identifier for the provided user restrictions, see DevicePolicyManager#addUserRestriction and UserManager for the list of available restrictions.

[Android.Runtime.Register("getIdentifierForUserRestriction", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=34)]
public static string GetIdentifierForUserRestriction (string restriction);
[<Android.Runtime.Register("getIdentifierForUserRestriction", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=34)>]
static member GetIdentifierForUserRestriction : string -> string

Parameters

restriction
String

Returns

Attributes

Remarks

Returns a string identifier for the provided user restrictions, see DevicePolicyManager#addUserRestriction and UserManager for the list of available restrictions.

Java documentation for android.app.admin.DevicePolicyIdentifiers.getIdentifierForUserRestriction(java.lang.String).

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