public abstract class ActivityRunner
extends java.lang.Object
UISettings
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTRA_SCAN_EXCEPTION
Key for exception stored in intent when returning result with RESULT_CANCELED code.
|
Constructor and Description |
---|
ActivityRunner() |
Modifier and Type | Method and Description |
---|---|
static void |
startActivityForResult(android.app.Activity callingActivity,
int requestCode,
UISettings settings)
Starts the activity associated with this settings object for result with given request code.
|
static void |
startActivityForResult(android.app.Fragment callingFragment,
int requestCode,
UISettings settings)
Starts the activity associated with this settings object for result with given request code.
|
static void |
startActivityForResult(androidx.fragment.app.Fragment callingFragment,
int requestCode,
UISettings settings)
Starts the activity associated with this settings object for result with given request code.
|
public static final java.lang.String EXTRA_SCAN_EXCEPTION
public static void startActivityForResult(@NonNull android.app.Activity callingActivity, int requestCode, @NonNull UISettings settings)
Intent
to scan activity associated with this settings
object and starts that activity by calling Activity.startActivityForResult(Intent, int)
on given calling Activity
.callingActivity
- Activity to which scanning result should be delivered via Activity.onActivityResult(int, int, Intent)
callback.requestCode
- Request code for Activity.startActivityForResult(Intent, int)
.settings
- UISettings
object that will be used to determine which activity should be run and with which parameters.public static void startActivityForResult(@NonNull android.app.Fragment callingFragment, int requestCode, @NonNull UISettings settings)
Intent
to scan activity associated with this settings
object and starts that activity by calling Fragment.startActivityForResult(Intent, int)
on given calling Fragment
.callingFragment
- Fragment to which ascanning result should be delivered via Fragment.onActivityResult(int, int, Intent)
callback.requestCode
- Request code for Fragment.startActivityForResult(Intent, int)
settings
- UISettings
object that will be used to determine which activity should be run and with which parameters.public static void startActivityForResult(@NonNull androidx.fragment.app.Fragment callingFragment, int requestCode, @NonNull UISettings settings)
Intent
to scan activity associated with this settings
object and starts that activity by calling Fragment.startActivityForResult(Intent, int)
on given calling Fragment
.callingFragment
- Fragment to which scanning result should be delivered via Fragment.onActivityResult(int, int, Intent)
callback.requestCode
- Request code for Fragment.startActivityForResult(Intent, int)
settings
- UISettings
object that will be used to determine which activity should be run and with which parameters.