77 строки
3.4 KiB
YAML
77 строки
3.4 KiB
YAML
### YamlMime:JavaType
|
|
inheritances:
|
|
- <xref href="java.lang.Object" data-throw-if-not-resolved="False"/>
|
|
- <xref href="Activity" data-throw-if-not-resolved="False"/>
|
|
methods:
|
|
- fullName: com.microsoft.identity.client.CurrentTaskBrowserTabActivity.onActivityResult(int requestCode, int resultCode, Intent data)
|
|
name: onActivityResult(int requestCode, int resultCode, Intent data)
|
|
nameWithType: CurrentTaskBrowserTabActivity.onActivityResult(int requestCode, int resultCode, Intent data)
|
|
parameters:
|
|
- name: requestCode
|
|
type: <xref href="int?alt=int&text=int" data-throw-if-not-resolved="False"/>
|
|
- name: resultCode
|
|
type: <xref href="int?alt=int&text=int" data-throw-if-not-resolved="False"/>
|
|
- name: data
|
|
type: <xref href="Intent?alt=Intent&text=Intent" data-throw-if-not-resolved="False"/>
|
|
syntax: protected void onActivityResult(int requestCode, int resultCode, Intent data)
|
|
uid: com.microsoft.identity.client.CurrentTaskBrowserTabActivity.onActivityResult(int,int,Intent)
|
|
- fullName: com.microsoft.identity.client.CurrentTaskBrowserTabActivity.onCreate(final Bundle savedInstanceState)
|
|
name: onCreate(final Bundle savedInstanceState)
|
|
nameWithType: CurrentTaskBrowserTabActivity.onCreate(final Bundle savedInstanceState)
|
|
parameters:
|
|
- name: savedInstanceState
|
|
type: <xref href="final+Bundle?alt=final+Bundle&text=final+Bundle" data-throw-if-not-resolved="False"/>
|
|
syntax: protected void onCreate(final Bundle savedInstanceState)
|
|
uid: com.microsoft.identity.client.CurrentTaskBrowserTabActivity.onCreate(final Bundle)
|
|
- fullName: com.microsoft.identity.client.CurrentTaskBrowserTabActivity.onDestroy()
|
|
name: onDestroy()
|
|
nameWithType: CurrentTaskBrowserTabActivity.onDestroy()
|
|
syntax: protected void onDestroy()
|
|
uid: com.microsoft.identity.client.CurrentTaskBrowserTabActivity.onDestroy()
|
|
nameWithType: CurrentTaskBrowserTabActivity
|
|
syntax: public class CurrentTaskBrowserTabActivity
|
|
type: class
|
|
uid: com.microsoft.identity.client.CurrentTaskBrowserTabActivity
|
|
fullName: com.microsoft.identity.client.CurrentTaskBrowserTabActivity
|
|
name: CurrentTaskBrowserTabActivity
|
|
package: com.microsoft.identity.client
|
|
summary: >-
|
|
<p>MSAL activity class (needs to be public in order to be discoverable by the os) to get the browser redirect with auth code from authorize endpoint. This activity has to be exposed by "android:exported=true", and intent filter has to be declared in the manifest for the activity. </p>
|
|
|
|
<p>When the AuthorizationAgent is launched, and we're redirected back with the redirect uri (the redirect must be unique across apps on a device), the os will fire an intent with the redirect, and the CurrentTaskBrowserTabActivity will be launched. </p>
|
|
|
|
<p>Only use this if you've configured MSAL to use authorization_in_current_task <pre>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.VIEW" /></pre></p>
|
|
|
|
<p>
|
|
|
|
<pre> To receive implicit intents, have to put the activity in the category of default.
|
|
|
|
<category android:name="android.intent.category.DEFAULT" /></pre>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<pre> The target activity allows itself to be started by a web browser to display data.
|
|
|
|
<category android:name="android.intent.category.BROWSABLE" /></pre>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<pre> BrowserTabActivity will be launched when matching the custom url scheme.
|
|
|
|
<data android:scheme="msalclientid" android:host="auth" />
|
|
|
|
</intent-filter>
|
|
|
|
</pre>
|
|
|
|
</p>
|
|
metadata: {}
|