SubscribeConfig.Builder.SetTerminateNotificationEnabled(Boolean) 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.
Configures termination notifications for a subscribe discovery session.
[Android.Runtime.Register("setTerminateNotificationEnabled", "(Z)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=26)]
public Android.Net.Wifi.Aware.SubscribeConfig.Builder? SetTerminateNotificationEnabled(bool enable);
[<Android.Runtime.Register("setTerminateNotificationEnabled", "(Z)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=26)>]
member this.SetTerminateNotificationEnabled : bool -> Android.Net.Wifi.Aware.SubscribeConfig.Builder
Parameters
- enable
- Boolean
Whether to request discovery termination notifications from the Wi-Fi hardware.
Returns
The builder to facilitate chaining builder.setXXX(..).setXXX(..).
- Attributes
Remarks
When enabled, termination notifications from the Wi-Fi hardware can invoke OnSessionTerminated(). On Android 12 through Android 17, closing the discovery session can also invoke this callback when notifications are disabled.
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.