AppOpsManager.StartProxyOpNoThrow Method
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.
Like #startProxyOp(String, int, String, String, String)
but instead
of throwing a SecurityException
it returns #MODE_ERRORED
.
[Android.Runtime.Register("startProxyOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetStartProxyOpNoThrow_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=31)]
public virtual int StartProxyOpNoThrow (string op, int proxiedUid, string proxiedPackageName, string? proxiedAttributionTag, string? message);
[<Android.Runtime.Register("startProxyOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetStartProxyOpNoThrow_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=31)>]
abstract member StartProxyOpNoThrow : string * int * string * string * string -> int
override this.StartProxyOpNoThrow : string * int * string * string * string -> int
Parameters
- op
- String
- proxiedUid
- Int32
- proxiedPackageName
- String
- proxiedAttributionTag
- String
- message
- String
Returns
- Attributes
Remarks
Like #startProxyOp(String, int, String, String, String)
but instead of throwing a SecurityException
it returns #MODE_ERRORED
.
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.