MbmsGroupCallSession.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Create(Context, IExecutor, IMbmsGroupCallSessionCallback) |
Create a new |
Create(Context, Int32, IExecutor, IMbmsGroupCallSessionCallback) |
Create a new |
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)
.
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.
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.