public final class

ActivityResultContracts.StartIntentSenderForResult

extends ActivityResultContract<IntentSenderRequest, ActivityResult>

 java.lang.Object

androidx.activity.result.contract.ActivityResultContract<IntentSenderRequest, ActivityResult>

↳androidx.activity.result.contract.ActivityResultContracts.StartIntentSenderForResult

Overview

An ActivityResultContract that calls . This ActivityResultContract takes an IntentSenderRequest, which must be constructed using an . If the call to throws an the ActivityResultCallback will receive an ActivityResult with an resultCode and whose intent has the of ActivityResultContracts.StartIntentSenderForResult.ACTION_INTENT_SENDER_REQUEST and an extra ActivityResultContracts.StartIntentSenderForResult.EXTRA_SEND_INTENT_EXCEPTION that contains the thrown exception.

Summary

Fields
public static final java.lang.StringACTION_INTENT_SENDER_REQUEST

An action for making a request via the API.

public static final java.lang.StringEXTRA_INTENT_SENDER_REQUEST

Key for the extra containing the IntentSenderRequest.

public static final java.lang.StringEXTRA_SEND_INTENT_EXCEPTION

Key for the extra containing the if the call to fails.

Constructors
publicStartIntentSenderForResult()

Methods
public abstract IntentcreateIntent(Context context, java.lang.Object input)

Create an intent that can be used for

public abstract java.lang.ObjectparseResult(int resultCode, Intent intent)

Convert result obtained from to O

from ActivityResultContract<I, O>getSynchronousResult
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final java.lang.String ACTION_INTENT_SENDER_REQUEST

An action for making a request via the API.

public static final java.lang.String EXTRA_INTENT_SENDER_REQUEST

Key for the extra containing the IntentSenderRequest.

See also: ActivityResultContracts.StartIntentSenderForResult.ACTION_INTENT_SENDER_REQUEST

public static final java.lang.String EXTRA_SEND_INTENT_EXCEPTION

Key for the extra containing the if the call to fails.

Constructors

public StartIntentSenderForResult()

Methods

public abstract Intent createIntent(Context context, java.lang.Object input)

Create an intent that can be used for

public abstract java.lang.Object parseResult(int resultCode, Intent intent)

Convert result obtained from to O