Language

PublishConfig.Builder.SetTerminateNotificationEnabled(Boolean) Method

Definition

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

[Android.Runtime.Register("setTerminateNotificationEnabled", "(Z)Landroid/net/wifi/aware/PublishConfig$Builder;", "", ApiSince=26)]
public Android.Net.Wifi.Aware.PublishConfig.Builder? SetTerminateNotificationEnabled(bool enable);
[<Android.Runtime.Register("setTerminateNotificationEnabled", "(Z)Landroid/net/wifi/aware/PublishConfig$Builder;", "", ApiSince=26)>]
member this.SetTerminateNotificationEnabled : bool -> Android.Net.Wifi.Aware.PublishConfig.Builder

Parameters

enable
Boolean

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

Returns

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

Attributes

Remarks

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

Android reference for android.net.wifi.aware.PublishConfig.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