BrowserTabActivity クラス

  • java.lang.Object
    • Activity
      • com.microsoft.identity.client.BrowserTabActivity

public class BrowserTabActivity

認証エンドポイントから認証コードを使用してブラウザー リダイレクトを取得するには、MSAL アクティビティ クラス (os で検出できるようにするにはパブリックである必要があります)。 このアクティビティは "android:exported=true" によって公開する必要があり、アクティビティのマニフェストで意図フィルターを宣言する必要があります。

AuthorizationAgent が起動され、リダイレクト URI でリダイレクトされます (リダイレクトはデバイス上のアプリ間で一意である必要があります)、os はリダイレクトを使用して意図を起動し、BrowserTabActivity が起動します。

<intent-filter>
&lt;action android:name="android.intent.action.VIEW" /&gt;</pre></p>

    To receive implicit intents, have to put the activity in the category of default.

    <category android:name="android.intent.category.DEFAULT" />

    The target activity allows itself to be started by a web browser to display data.

    <category android:name="android.intent.category.BROWSABLE" />

    BrowserTabActivity will be launched when matching the custom url scheme.

    <data android:scheme="msalclientid" android:host="auth" />

</intent-filter>

メソッドの概要

修飾子と型 メソッドと説明
void onCreate(final Bundle savedInstanceState)

メソッドの詳細

onCreate

protected void onCreate(final Bundle savedInstanceState)

Parameters:

savedInstanceState

適用対象