Language

SubscribeConfig.Builder.SetTerminateNotificationEnabled(Boolean) Method

Definition

Configure whether a subscribe terminate notification DiscoverySessionCallback.onSessionTerminated() is reported back to the callback.

[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

If true the terminate callback will be called when the subscribe is terminated. Otherwise it will not be called.

Returns

The builder to facilitate chaining builder.setXXX(..).setXXX(..).

Attributes

Remarks

Configure whether a subscribe terminate notification DiscoverySessionCallback.onSessionTerminated() is reported back to the callback.

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