Share via


AppOpsManager.NoteOpNoThrow Method

Definition

Overloads

NoteOpNoThrow(String, Int32, String)

This member is deprecated.

NoteOpNoThrow(String, Int32, String, String, String)

Like #noteOp(String, int, String, String, String) but instead of throwing a SecurityException it returns #MODE_ERRORED.

NoteOpNoThrow(String, Int32, String)

This member is deprecated.

[Android.Runtime.Register("noteOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;)I", "GetNoteOpNoThrow_Ljava_lang_String_ILjava_lang_String_Handler")]
public virtual Android.App.AppOpsManagerMode NoteOpNoThrow (string op, int uid, string packageName);
[<Android.Runtime.Register("noteOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;)I", "GetNoteOpNoThrow_Ljava_lang_String_ILjava_lang_String_Handler")>]
abstract member NoteOpNoThrow : string * int * string -> Android.App.AppOpsManagerMode
override this.NoteOpNoThrow : string * int * string -> Android.App.AppOpsManagerMode

Parameters

op
String
uid
Int32
packageName
String

Returns

Attributes

Remarks

This member is deprecated. Use #noteOpNoThrow(String, int, String, String, String) instead

Java documentation for android.app.AppOpsManager.noteOpNoThrow(java.lang.String, 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

NoteOpNoThrow(String, Int32, String, String, String)

Like #noteOp(String, int, String, String, String) but instead of throwing a SecurityException it returns #MODE_ERRORED.

[Android.Runtime.Register("noteOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetNoteOpNoThrow_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=30)]
public virtual Android.App.AppOpsManagerMode NoteOpNoThrow (string op, int uid, string packageName, string? attributionTag, string? message);
[<Android.Runtime.Register("noteOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetNoteOpNoThrow_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=30)>]
abstract member NoteOpNoThrow : string * int * string * string * string -> Android.App.AppOpsManagerMode
override this.NoteOpNoThrow : string * int * string * string * string -> Android.App.AppOpsManagerMode

Parameters

op
String
uid
Int32
packageName
String
attributionTag
String
message
String

Returns

Attributes

Remarks

Like #noteOp(String, int, String, String, String) but instead of throwing a SecurityException it returns #MODE_ERRORED.

Java documentation for android.app.AppOpsManager.noteOpNoThrow(java.lang.String, int, java.lang.String, java.lang.String, 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