共用方式為


MbmsGroupCallSession.Create 方法

定義

多載

Create(Context, IExecutor, IMbmsGroupCallSessionCallback)

使用系統預設資料訂用帳戶識別碼建立新的 MbmsGroupCallSession

Create(Context, Int32, IExecutor, IMbmsGroupCallSessionCallback)

使用指定的訂用帳戶識別碼建立新的 MbmsGroupCallSession

Create(Context, IExecutor, IMbmsGroupCallSessionCallback)

使用系統預設資料訂用帳戶識別碼建立新的 MbmsGroupCallSession

[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

參數

context
Context

要使用的 Context

executor
IExecutor

您要執行回呼的執行程式。

callback
IMbmsGroupCallSessionCallback

您想要接收異步操作結果的回呼物件。

傳回

MbmsGroupCallSession實例,如果發生錯誤,則為 null。

屬性

備註

使用系統預設資料訂用帳戶識別碼建立新的 MbmsGroupCallSession 。 請參閱 #create(Context, int, Executor, MbmsGroupCallSessionCallback)

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

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Create(Context, Int32, IExecutor, IMbmsGroupCallSessionCallback)

使用指定的訂用帳戶識別碼建立新的 MbmsGroupCallSession

[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

參數

context
Context

要使用的 Context

subscriptionId
Int32

要使用的訂用帳戶標識碼。

executor
IExecutor

您要執行回呼的執行程式。

callback
IMbmsGroupCallSessionCallback

您想要接收異步操作結果的回呼物件。

傳回

MbmsGroupCallSession實例,如果發生錯誤,則為 null。

屬性

備註

使用指定的訂用帳戶識別碼建立新的 MbmsGroupCallSession

每個 UID 可能只有一個 實例 MbmsGroupCallSession 。 如果您在行程中有 作用中 實體時呼叫這個方法(換句話說,未#close()呼叫此方法的實例MbmsGroupCallSession),這個方法會擲回 IllegalStateException。 如果您在相同 UID 下執行的不同進程中呼叫此方法,則會透過 MbmsGroupCallSessionCallback#onError(int, String)指出錯誤。

請注意,初始化可能會以異步方式失敗。 如果您想要在收到這類異步錯誤之後再試一次,您必須在收到的 實例MbmsGroupCallSession上呼叫 #close() ,才能再次呼叫此方法。

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

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於