Language

StrictMode.VmPolicy.Builder.DetectNonSdkApiUsage Method

Definition

Detects reflective usage of APIs that are not part of the public Android SDK. Note that any non-SDK APIs that this processes accesses before this detection is enabled may not be detected. To ensure that all such API accesses are detected, you should apply this policy as early as possible after process creation.

[Android.Runtime.Register("detectNonSdkApiUsage", "()Landroid/os/StrictMode$VmPolicy$Builder;", "", ApiSince=28)]
public Android.OS.StrictMode.VmPolicy.Builder DetectNonSdkApiUsage();
[<Android.Runtime.Register("detectNonSdkApiUsage", "()Landroid/os/StrictMode$VmPolicy$Builder;", "", ApiSince=28)>]
member this.DetectNonSdkApiUsage : unit -> Android.OS.StrictMode.VmPolicy.Builder

Returns

The returned value is non-null.

Attributes

Remarks

Detects reflective usage of APIs that are not part of the public Android SDK. Note that any non-SDK APIs that this processes accesses before this detection is enabled may not be detected. To ensure that all such API accesses are detected, you should apply this policy as early as possible after process creation.

Java documentation for android.os.StrictMode.VmPolicy.Builder.detectNonSdkApiUsage().

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