Udostępnij za pośrednictwem


StrictMode.ThreadPolicy.Builder.PenaltyListener Method

Definition

[Android.Runtime.Register("penaltyListener", "(Ljava/util/concurrent/Executor;Landroid/os/StrictMode$OnThreadViolationListener;)Landroid/os/StrictMode$ThreadPolicy$Builder;", "", ApiSince=28)]
public Android.OS.StrictMode.ThreadPolicy.Builder PenaltyListener (Java.Util.Concurrent.IExecutor executor, Android.OS.StrictMode.IOnThreadViolationListener listener);
[<Android.Runtime.Register("penaltyListener", "(Ljava/util/concurrent/Executor;Landroid/os/StrictMode$OnThreadViolationListener;)Landroid/os/StrictMode$ThreadPolicy$Builder;", "", ApiSince=28)>]
member this.PenaltyListener : Java.Util.Concurrent.IExecutor * Android.OS.StrictMode.IOnThreadViolationListener -> Android.OS.StrictMode.ThreadPolicy.Builder

Parameters

executor
IExecutor

Returns

Attributes

Applies to