Freigeben über


DiscoverySessionCallback.OnMessageSendFailed(Int32) Method

Definition

Called when message transmission initiated with DiscoverySession#sendMessage(PeerHandle, int, byte[]) fails.

[Android.Runtime.Register("onMessageSendFailed", "(I)V", "GetOnMessageSendFailed_IHandler", ApiSince=26)]
public virtual void OnMessageSendFailed (int messageId);
[<Android.Runtime.Register("onMessageSendFailed", "(I)V", "GetOnMessageSendFailed_IHandler", ApiSince=26)>]
abstract member OnMessageSendFailed : int -> unit
override this.OnMessageSendFailed : int -> unit

Parameters

messageId
Int32

The arbitrary message ID specified when sending the message.

Attributes

Remarks

Called when message transmission initiated with DiscoverySession#sendMessage(PeerHandle, int, byte[]) fails. E.g. when no ACK is received from the peer.

Note that either this callback or DiscoverySessionCallback#onMessageSendSucceeded(int) will be received - never both.

Java documentation for android.net.wifi.aware.DiscoverySessionCallback.onMessageSendFailed(int).

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