Taal

TetheringManager.RegisterTetheringEventCallback Method

Definition

Registers the specified tethering event callback.

[Android.Runtime.Register("registerTetheringEventCallback", "(Ljava/util/concurrent/Executor;Landroid/net/TetheringManager$TetheringEventCallback;)V", "GetRegisterTetheringEventCallback_Ljava_util_concurrent_Executor_Landroid_net_TetheringManager_TetheringEventCallback_Handler", ApiSince=36)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")]
public virtual void RegisterTetheringEventCallback(Java.Util.Concurrent.IExecutor executor, Android.Net.TetheringManager.ITetheringEventCallback callback);
[<Android.Runtime.Register("registerTetheringEventCallback", "(Ljava/util/concurrent/Executor;Landroid/net/TetheringManager$TetheringEventCallback;)V", "GetRegisterTetheringEventCallback_Ljava_util_concurrent_Executor_Landroid_net_TetheringManager_TetheringEventCallback_Handler", ApiSince=36)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
abstract member RegisterTetheringEventCallback : Java.Util.Concurrent.IExecutor * Android.Net.TetheringManager.ITetheringEventCallback -> unit
override this.RegisterTetheringEventCallback : Java.Util.Concurrent.IExecutor * Android.Net.TetheringManager.ITetheringEventCallback -> unit

Parameters

executor
IExecutor

the executor on which callback will be invoked. This value cannot be null.

callback
TetheringManager.ITetheringEventCallback

the callback to be called when tethering has change events. This value cannot be null.

Attributes

Remarks

Java documentation for android.net.TetheringManager.registerTetheringEventCallback(java.util.concurrent.Executor, android.net.TetheringManager.TetheringEventCallback).

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