Sdílet prostřednictvím


DiscoverySessionCallback.OnMessageSendSucceeded(Int32) Method

Definition

Called in response to DiscoverySession#sendMessage(PeerHandle, int, byte[]) when a message is transmitted successfully - i.

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

Parameters

messageId
Int32

The arbitrary message ID specified when sending the message.

Attributes

Remarks

Called in response to DiscoverySession#sendMessage(PeerHandle, int, byte[]) when a message is transmitted successfully - i.e. when it was received successfully by the peer (corresponds to an ACK being received).

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

Java documentation for android.net.wifi.aware.DiscoverySessionCallback.onMessageSendSucceeded(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