共用方式為


AppOpsManager.NoteProxyOpNoThrow Method

Definition

Overloads

NoteProxyOpNoThrow(String, String)

This member is deprecated.

NoteProxyOpNoThrow(String, String, Int32)

This member is deprecated.

NoteProxyOpNoThrow(String, String, Int32, String, String)

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

NoteProxyOpNoThrow(String, String)

This member is deprecated.

[Android.Runtime.Register("noteProxyOpNoThrow", "(Ljava/lang/String;Ljava/lang/String;)I", "GetNoteProxyOpNoThrow_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=23)]
public virtual Android.App.AppOpsManagerMode NoteProxyOpNoThrow (string op, string proxiedPackageName);
[<Android.Runtime.Register("noteProxyOpNoThrow", "(Ljava/lang/String;Ljava/lang/String;)I", "GetNoteProxyOpNoThrow_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=23)>]
abstract member NoteProxyOpNoThrow : string * string -> Android.App.AppOpsManagerMode
override this.NoteProxyOpNoThrow : string * string -> Android.App.AppOpsManagerMode

Parameters

op
String
proxiedPackageName
String

Returns

Attributes

Remarks

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

Java documentation for android.app.AppOpsManager.noteProxyOpNoThrow(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

NoteProxyOpNoThrow(String, String, Int32)

This member is deprecated.

[Android.Runtime.Register("noteProxyOpNoThrow", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetNoteProxyOpNoThrow_Ljava_lang_String_Ljava_lang_String_IHandler", ApiSince=29)]
public virtual Android.App.AppOpsManagerMode NoteProxyOpNoThrow (string op, string? proxiedPackageName, int proxiedUid);
[<Android.Runtime.Register("noteProxyOpNoThrow", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetNoteProxyOpNoThrow_Ljava_lang_String_Ljava_lang_String_IHandler", ApiSince=29)>]
abstract member NoteProxyOpNoThrow : string * string * int -> Android.App.AppOpsManagerMode
override this.NoteProxyOpNoThrow : string * string * int -> Android.App.AppOpsManagerMode

Parameters

op
String
proxiedPackageName
String
proxiedUid
Int32

Returns

Attributes

Remarks

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

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

NoteProxyOpNoThrow(String, String, Int32, String, String)

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

[Android.Runtime.Register("noteProxyOpNoThrow", "(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)I", "GetNoteProxyOpNoThrow_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Handler", ApiSince=30)]
public virtual Android.App.AppOpsManagerMode NoteProxyOpNoThrow (string op, string? proxiedPackageName, int proxiedUid, string? proxiedAttributionTag, string? message);
[<Android.Runtime.Register("noteProxyOpNoThrow", "(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)I", "GetNoteProxyOpNoThrow_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Handler", ApiSince=30)>]
abstract member NoteProxyOpNoThrow : string * string * int * string * string -> Android.App.AppOpsManagerMode
override this.NoteProxyOpNoThrow : string * string * int * string * string -> Android.App.AppOpsManagerMode

Parameters

op
String
proxiedPackageName
String
proxiedUid
Int32
proxiedAttributionTag
String
message
String

Returns

Attributes

Remarks

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

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