BrowserTabActivity 类
- java.
lang. Object - Activity
- com.
microsoft. identity. client. BrowserTabActivity
- com.
public class BrowserTabActivity
MSAL 活动类 (需要是公共的,才能被操作系统) 发现,以便从授权终结点使用身份验证代码获取浏览器重定向。 此活动必须通过“android:exported=true”公开,并且意向筛选器必须在活动的清单中声明。
启动 AuthorizationAgent 后,使用重定向 URI 重定向回时, (重定向必须在设备上) 的应用之间唯一,操作系统将通过重定向触发意向,并且 BrowserTabActivity 将启动。
<intent-filter><action android:name="android.intent.action.VIEW" /></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