Share via


MbmsGroupCallSession.Create Method

Definition

Overloads

Create(Context, IExecutor, IMbmsGroupCallSessionCallback)

Create a new MbmsGroupCallSession using the system default data subscription ID.

Create(Context, Int32, IExecutor, IMbmsGroupCallSessionCallback)

Create a new MbmsGroupCallSession using the given subscription ID.

Create(Context, IExecutor, IMbmsGroupCallSessionCallback)

Create a new MbmsGroupCallSession using the system default data subscription ID.

[Android.Runtime.Register("create", "(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/MbmsGroupCallSessionCallback;)Landroid/telephony/MbmsGroupCallSession;", "", ApiSince=29)]
public static Android.Telephony.MbmsGroupCallSession? Create (Android.Content.Context context, Java.Util.Concurrent.IExecutor executor, Android.Telephony.Mbms.IMbmsGroupCallSessionCallback callback);
[<Android.Runtime.Register("create", "(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/MbmsGroupCallSessionCallback;)Landroid/telephony/MbmsGroupCallSession;", "", ApiSince=29)>]
static member Create : Android.Content.Context * Java.Util.Concurrent.IExecutor * Android.Telephony.Mbms.IMbmsGroupCallSessionCallback -> Android.Telephony.MbmsGroupCallSession

Parameters

context
Context

The Context to use.

executor
IExecutor

The executor on which you wish to execute callbacks.

callback
IMbmsGroupCallSessionCallback

A callback object on which you wish to receive results of asynchronous operations.

Returns

An instance of MbmsGroupCallSession, or null if an error occurred.

Attributes

Remarks

Create a new MbmsGroupCallSession using the system default data subscription ID. See #create(Context, int, Executor, MbmsGroupCallSessionCallback).

Java documentation for android.telephony.MbmsGroupCallSession.create(android.content.Context, java.util.concurrent.Executor, android.telephony.mbms.MbmsGroupCallSessionCallback).

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

Create(Context, Int32, IExecutor, IMbmsGroupCallSessionCallback)

Create a new MbmsGroupCallSession using the given subscription ID.

[Android.Runtime.Register("create", "(Landroid/content/Context;ILjava/util/concurrent/Executor;Landroid/telephony/mbms/MbmsGroupCallSessionCallback;)Landroid/telephony/MbmsGroupCallSession;", "", ApiSince=29)]
public static Android.Telephony.MbmsGroupCallSession? Create (Android.Content.Context context, int subscriptionId, Java.Util.Concurrent.IExecutor executor, Android.Telephony.Mbms.IMbmsGroupCallSessionCallback callback);
[<Android.Runtime.Register("create", "(Landroid/content/Context;ILjava/util/concurrent/Executor;Landroid/telephony/mbms/MbmsGroupCallSessionCallback;)Landroid/telephony/MbmsGroupCallSession;", "", ApiSince=29)>]
static member Create : Android.Content.Context * int * Java.Util.Concurrent.IExecutor * Android.Telephony.Mbms.IMbmsGroupCallSessionCallback -> Android.Telephony.MbmsGroupCallSession

Parameters

context
Context

The Context to use.

subscriptionId
Int32

The subscription ID to use.

executor
IExecutor

The executor on which you wish to execute callbacks.

callback
IMbmsGroupCallSessionCallback

A callback object on which you wish to receive results of asynchronous operations.

Returns

An instance of MbmsGroupCallSession, or null if an error occurred.

Attributes

Remarks

Create a new MbmsGroupCallSession using the given subscription ID.

You may only have one instance of MbmsGroupCallSession per UID. If you call this method while there is an active instance of MbmsGroupCallSession in your process (in other words, one that has not had #close() called on it), this method will throw an IllegalStateException. If you call this method in a different process running under the same UID, an error will be indicated via MbmsGroupCallSessionCallback#onError(int, String).

Note that initialization may fail asynchronously. If you wish to try again after you receive such an asynchronous error, you must call #close() on the instance of MbmsGroupCallSession that you received before calling this method again.

Java documentation for android.telephony.MbmsGroupCallSession.create(android.content.Context, int, java.util.concurrent.Executor, android.telephony.mbms.MbmsGroupCallSessionCallback).

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