StrictMode.ThreadPolicy.Builder.PenaltyListener 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.
[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