TetheringManager.RegisterTetheringEventCallback 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.
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.
the callback to be called when tethering has change events. This value cannot be null.
- Attributes