Udostępnij za pośrednictwem


MbmsDownloadSession.AddServiceAnnouncement(Byte[]) Method

Definition

Inform the middleware of a service announcement descriptor received from a group communication server.

[Android.Runtime.Register("addServiceAnnouncement", "([B)V", "GetAddServiceAnnouncement_arrayBHandler", ApiSince=31)]
public virtual void AddServiceAnnouncement (byte[] contents);
[<Android.Runtime.Register("addServiceAnnouncement", "([B)V", "GetAddServiceAnnouncement_arrayBHandler", ApiSince=31)>]
abstract member AddServiceAnnouncement : byte[] -> unit
override this.AddServiceAnnouncement : byte[] -> unit

Parameters

contents
Byte[]

The contents of the service announcement descriptor received from the group call server. If the size of this array is greater than the value of #getMaximumServiceAnnouncementSize(), an IllegalArgumentException will be thrown.

Attributes

Remarks

Inform the middleware of a service announcement descriptor received from a group communication server.

When participating in a group call via the MbmsGroupCallSession API, applications may receive a service announcement descriptor from the group call server that informs them of files that may be relevant to users communicating on the group call.

After supplying the service announcement descriptor received from the server to the middleware via this API, applications will receive information on the available files via MbmsDownloadSessionCallback#onFileServicesUpdated, and the available files will be downloadable via MbmsDownloadSession#download like other files published via MbmsDownloadSessionCallback#onFileServicesUpdated.

Asynchronous error codes via the MbmsDownloadSessionCallback#onError(int, String) callback may include any of the errors that are not specific to the streaming use-case.

May throw an IllegalStateException when the middleware has not yet been bound, or an IllegalArgumentException if the byte array is too large, or an UnsupportedOperationException if the middleware has not implemented this method.

Java documentation for android.telephony.MbmsDownloadSession.addServiceAnnouncement(byte[]).

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