Поделиться через


SubscriptionManager.SwitchToSubscription(Int32, PendingIntent) Метод

Определение

Переход на определенную подписку

[Android.Runtime.Register("switchToSubscription", "(ILandroid/app/PendingIntent;)V", "GetSwitchToSubscription_ILandroid_app_PendingIntent_Handler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS")]
public virtual void SwitchToSubscription (int subId, Android.App.PendingIntent callbackIntent);
[<Android.Runtime.Register("switchToSubscription", "(ILandroid/app/PendingIntent;)V", "GetSwitchToSubscription_ILandroid_app_PendingIntent_Handler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS")>]
abstract member SwitchToSubscription : int * Android.App.PendingIntent -> unit
override this.SwitchToSubscription : int * Android.App.PendingIntent -> unit

Параметры

subId
Int32

sub id

callbackIntent
PendingIntent

ожидание намерения, которое будет отправлено после завершения операции.

Атрибуты

Комментарии

Переход на определенную подписку

Этот элемент устарел. этот API является дубликатом EuiccManager#switchToSubscription(int, PendingIntent) и не поддерживает несколько включенных профилей (MEP). Вместо этого в приложениях следует использовать EuiccManager#switchToSubscription(int, PendingIntent) или EuiccManager#switchToSubscription(int, int, PendingIntent) .

Документация по Java для android.telephony.SubscriptionManager.switchToSubscription(int, android.app.PendingIntent).

Части этой страницы являются изменениями, основанными на работе, созданной и совместно используемой проектом и используемой в соответствии с условиями, Creative Commons 2.5 Attribution License Creative Commons 2.5 Attribution License.

Применяется к