The second Android 11 Developer Preview is now available, test it out and share your feedback.

ActivityResultContracts.Dial

public static class ActivityResultContracts.Dial
extends ActivityResultContract<String, Boolean>

java.lang.Object
   ↳ androidx.activity.result.contract.ActivityResultContract<java.lang.String, java.lang.Boolean>
     ↳ androidx.activity.result.contract.ActivityResultContracts.Dial


An ActivityResultContract to dial a number

Summary

Public constructors

ActivityResultContracts.Dial()

Public methods

Intent createIntent(String input)

Create an intent that can be used for Activity.startActivityForResult(Intent, int)

Boolean parseResult(int resultCode, Intent intent)

Convert result obtained from Activity.onActivityResult(int, int, Intent) to O

Inherited methods

Public constructors

ActivityResultContracts.Dial

public ActivityResultContracts.Dial ()

Public methods

createIntent

public Intent createIntent (String input)

Create an intent that can be used for Activity.startActivityForResult(Intent, int)

Parameters
input String

Returns
Intent

parseResult

public Boolean parseResult (int resultCode, 
                Intent intent)

Convert result obtained from Activity.onActivityResult(int, int, Intent) to O

Parameters
resultCode int

intent Intent

Returns
Boolean