compat/src/main/java/androidx/core/app/Person.java
public Bundle toBundle() {
        Bundle result = new Bundle();
        result.putCharSequence(NAME_KEY, mName);
        result.putBundle(ICON_KEY, mIcon != null ? mIcon.toBundle() : null);
        result.putString(URI_KEY, mUri);
        result.putString(KEY_KEY, mKey);
        result.putBoolean(IS_BOT_KEY, mIsBot);
        result.putBoolean(IS_IMPORTANT_KEY, mIsImportant);
        return result;
    }
/**
     * Writes and returns a new {@link Bundle} that represents this {@link Person}. This bundle can
     * be converted back by using {@link #fromBundle(Bundle)}.
     */
Writes and returns a new  Bundle that represents this  Person. This bundle can
be converted back by using  #fromBundle(Bundle).
Writes and returns a new Bundle that represents this Person . This bundle can be converted back by using #fromBundle ( Bundle ) .
public Bundle toBundle() {
        Bundle result = new Bundle();
        result.putCharSequence(NAME_KEY, mName);
        result.putBundle(ICON_KEY, mIcon != null ? mIcon.toBundle() : null);
        result.putString(URI_KEY, mUri);
        result.putString(KEY_KEY, mKey);
        result.putBoolean(IS_BOT_KEY, mIsBot);
        result.putBoolean(IS_IMPORTANT_KEY, mIsImportant);
        return result;
    }
public Bundle toBundle ( ) { Bundle result = new Bundle ( ) ; result . putCharSequence ( NAME_KEY , mName ) ; result . putBundle ( ICON_KEY , mIcon != null ? mIcon . toBundle ( ) : null ) ; result . putString ( URI_KEY , mUri ) ; result . putString ( KEY_KEY , mKey ) ; result . putBoolean ( IS_BOT_KEY , mIsBot ) ; result . putBoolean ( IS_IMPORTANT_KEY , mIsImportant ) ; return result ; }
Writes and returns a new {@link Bundle} that represents this {@link Person}.
Writes and returns a new { @link Bundle } that represents this { @link Person } .