RestrictionEntry Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| RestrictionEntry(Parcel) |
Constructor for specifying the type and key, with no initial value; |
| RestrictionEntry(RestrictionEntryType, String) |
Constructor for specifying the type and key, with no initial value; |
| RestrictionEntry(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| RestrictionEntry(String, Boolean) |
Constructor for |
| RestrictionEntry(String, Int32) |
Constructor for |
| RestrictionEntry(String, String) |
Constructor for |
| RestrictionEntry(String, String[]) |
Constructor for |
RestrictionEntry(Parcel)
Constructor for specifying the type and key, with no initial value;
[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public RestrictionEntry(Android.OS.Parcel? in);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Content.RestrictionEntry : Android.OS.Parcel -> Android.Content.RestrictionEntry
Parameters
- in
- Parcel
- Attributes
Remarks
Java documentation for android.content.RestrictionEntry.RestrictionEntry(int, 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
RestrictionEntry(RestrictionEntryType, String)
Constructor for specifying the type and key, with no initial value;
[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")]
public RestrictionEntry(Android.Content.RestrictionEntryType type, string? key);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")>]
new Android.Content.RestrictionEntry : Android.Content.RestrictionEntryType * string -> Android.Content.RestrictionEntry
Parameters
- type
- RestrictionEntryType
the restriction type.
- key
- String
the unique key for this restriction
- Attributes
Remarks
Constructor for specifying the type and key, with no initial value;
Java documentation for android.content.RestrictionEntry.RestrictionEntry(int, 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
RestrictionEntry(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected RestrictionEntry(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.RestrictionEntry : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.RestrictionEntry
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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
RestrictionEntry(String, Boolean)
Constructor for #TYPE_BOOLEAN type.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Z)V", "")]
public RestrictionEntry(string? key, bool selectedState);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Z)V", "")>]
new Android.Content.RestrictionEntry : string * bool -> Android.Content.RestrictionEntry
Parameters
- key
- String
the unique key for this restriction
- selectedState
- Boolean
whether this restriction is selected or not
- Attributes
Remarks
Constructor for #TYPE_BOOLEAN type.
Java documentation for android.content.RestrictionEntry.RestrictionEntry(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
RestrictionEntry(String, Int32)
Constructor for #TYPE_INTEGER type.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public RestrictionEntry(string? key, int selectedInt);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Android.Content.RestrictionEntry : string * int -> Android.Content.RestrictionEntry
Parameters
- key
- String
the unique key for this restriction
- selectedInt
- Int32
the integer value of the restriction
- Attributes
Remarks
Constructor for #TYPE_INTEGER type.
Java documentation for android.content.RestrictionEntry.RestrictionEntry(java.lang.String, int).
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
RestrictionEntry(String, String)
Constructor for #TYPE_CHOICE type.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public RestrictionEntry(string? key, string? selectedString);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Content.RestrictionEntry : string * string -> Android.Content.RestrictionEntry
Parameters
- key
- String
the unique key for this restriction
- selectedString
- String
the current value
- Attributes
Remarks
Constructor for #TYPE_CHOICE type.
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
RestrictionEntry(String, String[])
Constructor for #TYPE_MULTI_SELECT type.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[Ljava/lang/String;)V", "")]
public RestrictionEntry(string? key, string[]? selectedStrings);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[Ljava/lang/String;)V", "")>]
new Android.Content.RestrictionEntry : string * string[] -> Android.Content.RestrictionEntry
Parameters
- key
- String
the unique key for this restriction
- selectedStrings
- String[]
the list of values that are currently selected
- Attributes
Remarks
Constructor for #TYPE_MULTI_SELECT type.
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.