navigation/runtime/src/main/java/androidx/navigation/NavDeepLinkBuilder.java
@NonNull
    public TaskStackBuilder createTaskStackBuilder() {
        if (mIntent.getIntArrayExtra(NavController.KEY_DEEP_LINK_IDS) == null) {
            if (mGraph == null) {
                throw new IllegalStateException("You must call setGraph() "
                        + "before constructing the deep link");
            } else {
                throw new IllegalStateException("You must call setDestination() "
                        + "before constructing the deep link");
            }
        }
        // We create a copy of the Intent to ensure the Intent does not have itself
        // as an extra. This also prevents developers from modifying the internal Intent
        // via taskStackBuilder.editIntentAt()
        TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(mContext)
                .addNextIntentWithParentStack(new Intent(mIntent));
        for (int index = 0; index < taskStackBuilder.getIntentCount(); index++) {
            // Attach the original Intent to each Activity so that they can know
            // they were constructed in response to a deep link
            taskStackBuilder.editIntentAt(index)
                    .putExtra(NavController.KEY_DEEP_LINK_INTENT, mIntent);
        }
        return taskStackBuilder;
    }
/**
     * Construct the full {@link TaskStackBuilder task stack} needed to deep link to the given
     * destination.
     * <p>
     * You must have {@link #setGraph set a NavGraph} and {@link #setDestination set a destination}
     * before calling this method.
     * </p>
     *
     * @return a {@link TaskStackBuilder} which can be used to
     * {@link TaskStackBuilder#startActivities() send the deep link} or
     * {@link TaskStackBuilder#getPendingIntent(int, int) create a PendingIntent} to deep link to
     * the given destination.
     */
Construct the full  TaskStackBuilder task stack needed to deep link to the given
destination.

You must have  #setGraph set a NavGraph and  #setDestination set a destination
before calling this method.

@return a  TaskStackBuilder which can be used to
TaskStackBuilder#startActivities() send the deep link or
TaskStackBuilder#getPendingIntent(int, int) create a PendingIntent to deep link to
the given destination.
Construct the full TaskStackBuilder task stack needed to deep link to the given destination . You must have #setGraph set a NavGraph and #setDestination set a destination before calling this method . @return a TaskStackBuilder which can be used to TaskStackBuilder#startActivities () send the deep link or TaskStackBuilder#getPendingIntent ( int int ) create a PendingIntent to deep link to the given destination .
@NonNull
    public TaskStackBuilder createTaskStackBuilder() {
        if (mIntent.getIntArrayExtra(NavController.KEY_DEEP_LINK_IDS) == null) {
            if (mGraph == null) {
                throw new IllegalStateException("You must call setGraph() "
                        + "before constructing the deep link");
            } else {
                throw new IllegalStateException("You must call setDestination() "
                        + "before constructing the deep link");
            }
        }
        TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(mContext)
                .addNextIntentWithParentStack(new Intent(mIntent));
        for (int index = 0; index < taskStackBuilder.getIntentCount(); index++) {
            taskStackBuilder.editIntentAt(index)
                    .putExtra(NavController.KEY_DEEP_LINK_INTENT, mIntent);
        }
        return taskStackBuilder;
    }
@ NonNull public TaskStackBuilder createTaskStackBuilder ( ) { if ( mIntent . getIntArrayExtra ( NavController . KEY_DEEP_LINK_IDS ) == null ) { if ( mGraph == null ) { throw new IllegalStateException ( "You must call setGraph() " + "before constructing the deep link" ) ; } else { throw new IllegalStateException ( "You must call setDestination() " + "before constructing the deep link" ) ; } } TaskStackBuilder taskStackBuilder = TaskStackBuilder . create ( mContext ) . addNextIntentWithParentStack ( new Intent ( mIntent ) ) ; for ( int index = 0 ; index < taskStackBuilder . getIntentCount ( ) ; index ++ ) { taskStackBuilder . editIntentAt ( index ) . putExtra ( NavController . KEY_DEEP_LINK_INTENT , mIntent ) ; } return taskStackBuilder ; }
Construct the full {@link TaskStackBuilder task stack} needed to deep link to the given
 destination.
Construct the full { @link TaskStackBuilder task stack } needed to deep link to the given destination .
// We create a copy of the Intent to ensure the Intent does not have itself // as an extra. This also prevents developers from modifying the internal Intent // via taskStackBuilder.editIntentAt() // Attach the original Intent to each Activity so that they can know // they were constructed in response to a deep link