Language

SubscribeConfig.Builder.SetTerminateNotificationEnabled(Boolean) Method

Definition

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.

Android reference for android.net.wifi.aware.SubscribeConfig.Builder.setTerminateNotificationEnabled.

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