Builder

Class of android.app.slice, in Slice · Slice.java · Android's reference

public static class Builder

Constructors

public Builder(Uri uri, SliceSpec spec) source
public Builder(Builder parent) source

A builder of a sub-slice, under a uri made from the parent's.

Methods

public Builder setCallerNeeded(boolean callerNeeded) source
public Builder addHints(List<String> hints) source
public Builder addSubSlice(Slice slice, String subType) source
public Builder addAction(PendingIntent action, Slice s, String subType) source
public Builder addText(CharSequence text, String subType, List<String> hints) source
public Builder addIcon(Icon icon, String subType, List<String> hints) source
public Builder addRemoteInput(android.app.RemoteInput remoteInput, String subType, List<String> hints) source
public Builder addInt(int value, String subType, List<String> hints) source
public Builder addLong(long value, String subType, List<String> hints) source
public Builder addBundle(Bundle bundle, String subType, List<String> hints) source
public Slice build() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.