fragment/src/main/java/androidx/fragment/app/FragmentHostCallback.java
public void onStartIntentSenderFromFragment(Fragment fragment, IntentSender intent,
            int requestCode, @Nullable Intent fillInIntent, int flagsMask, int flagsValues,
            int extraFlags, Bundle options) throws IntentSender.SendIntentException {
        if (requestCode != -1) {
            throw new IllegalStateException(
                    "Starting intent sender with a requestCode requires a FragmentActivity host");
        }
        ActivityCompat.startIntentSenderForResult(mActivity, intent, requestCode, fillInIntent,
                flagsMask, flagsValues, extraFlags, options);
    }
/**
     * Starts a new {@link IntentSender} from the given fragment.
     * See {@link Activity#startIntentSender(IntentSender, Intent, int, int, int, Bundle)}.
     */
Starts a new  IntentSender from the given fragment.
Starts a new IntentSender from the given fragment .
public void onStartIntentSenderFromFragment(Fragment fragment, IntentSender intent,
            int requestCode, @Nullable Intent fillInIntent, int flagsMask, int flagsValues,
            int extraFlags, Bundle options) throws IntentSender.SendIntentException {
        if (requestCode != -1) {
            throw new IllegalStateException(
                    "Starting intent sender with a requestCode requires a FragmentActivity host");
        }
        ActivityCompat.startIntentSenderForResult(mActivity, intent, requestCode, fillInIntent,
                flagsMask, flagsValues, extraFlags, options);
    }
public void onStartIntentSenderFromFragment ( Fragment fragment , IntentSender intent , int requestCode , @ Nullable Intent fillInIntent , int flagsMask , int flagsValues , int extraFlags , Bundle options ) throws IntentSender . SendIntentException { if ( requestCode != - 1 ) { throw new IllegalStateException ( "Starting intent sender with a requestCode requires a FragmentActivity host" ) ; } ActivityCompat . startIntentSenderForResult ( mActivity , intent , requestCode , fillInIntent , flagsMask , flagsValues , extraFlags , options ) ; }
Starts a new {@link IntentSender} from the given fragment.
Starts a new { @link IntentSender } from the given fragment .