MbmsStreamingSession.Create メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| Create(Context, IExecutor, MbmsStreamingSessionCallback) |
システムの既定のデータ サブスクリプション ID を使用して、新しい |
| Create(Context, IExecutor, Int32, MbmsStreamingSessionCallback) |
指定したサブスクリプション ID を使用して、新しい |
Create(Context, IExecutor, MbmsStreamingSessionCallback)
システムの既定のデータ サブスクリプション ID を使用して、新しい MbmsStreamingSession を作成します。
[Android.Runtime.Register("create", "(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/MbmsStreamingSessionCallback;)Landroid/telephony/MbmsStreamingSession;", "", ApiSince=28)]
public static Android.Telephony.MbmsStreamingSession? Create(Android.Content.Context context, Java.Util.Concurrent.IExecutor executor, Android.Telephony.Mbms.MbmsStreamingSessionCallback callback);
[<Android.Runtime.Register("create", "(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/MbmsStreamingSessionCallback;)Landroid/telephony/MbmsStreamingSession;", "", ApiSince=28)>]
static member Create : Android.Content.Context * Java.Util.Concurrent.IExecutor * Android.Telephony.Mbms.MbmsStreamingSessionCallback -> Android.Telephony.MbmsStreamingSession
パラメーター
- context
- Context
使用する Context。
- executor
- IExecutor
コールバックを実行する Executor。
- callback
- MbmsStreamingSessionCallback
非同期操作の結果を受け取るコールバック オブジェクト。
返品
MbmsStreamingSessionのインスタンス。エラーが発生した場合は null。
- 属性
注釈
システムの既定のデータ サブスクリプション ID を使用して、新しい MbmsStreamingSession を作成します。
#create(Context, Executor, int, MbmsStreamingSessionCallback)を参照してください。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
Create(Context, IExecutor, Int32, MbmsStreamingSessionCallback)
指定したサブスクリプション ID を使用して、新しい MbmsStreamingSession を作成します。
[Android.Runtime.Register("create", "(Landroid/content/Context;Ljava/util/concurrent/Executor;ILandroid/telephony/mbms/MbmsStreamingSessionCallback;)Landroid/telephony/MbmsStreamingSession;", "", ApiSince=28)]
public static Android.Telephony.MbmsStreamingSession? Create(Android.Content.Context context, Java.Util.Concurrent.IExecutor executor, int subscriptionId, Android.Telephony.Mbms.MbmsStreamingSessionCallback callback);
[<Android.Runtime.Register("create", "(Landroid/content/Context;Ljava/util/concurrent/Executor;ILandroid/telephony/mbms/MbmsStreamingSessionCallback;)Landroid/telephony/MbmsStreamingSession;", "", ApiSince=28)>]
static member Create : Android.Content.Context * Java.Util.Concurrent.IExecutor * int * Android.Telephony.Mbms.MbmsStreamingSessionCallback -> Android.Telephony.MbmsStreamingSession
パラメーター
- context
- Context
使用する Context。
- executor
- IExecutor
コールバックを実行する Executor。
- subscriptionId
- Int32
使用するサブスクリプション ID。
- callback
- MbmsStreamingSessionCallback
非同期操作の結果を受け取るコールバック オブジェクト。
返品
MbmsStreamingSessionのインスタンス。エラーが発生した場合は null。
- 属性
注釈
指定したサブスクリプション ID を使用して、新しい MbmsStreamingSession を作成します。
この呼び出しではリモート サービスがバインドされることに注意してください。 このメソッドは、アプリのメイン スレッドでは呼び出しできません。
UID ごとに MbmsStreamingSession のインスタンスを 1 つだけ持つことができます。 プロセスに MbmsStreamingSession のアクティブなインスタンスがある間にこのメソッドを呼び出すと (つまり、 #close() 呼び出されていないインスタンス)、このメソッドは IllegalStateExceptionをスローします。 同じ UID で実行されている別のプロセスでこのメソッドを呼び出すと、 MbmsStreamingSessionCallback#onError(int, String)によってエラーが示されます。
初期化は非同期的に失敗する可能性があることに注意してください。 このような非同期エラーが発生した後でもう一度試す場合は、このメソッドを再度呼び出す前に、受信したMbmsStreamingSessionのインスタンスで#close()を呼び出す必要があります。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。