|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mobi.voiceassistant.base.PendingRequest.Builder
public static final class PendingRequest.Builder
Builder for PendingRequest
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.os.Parcelable |
---|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> |
Field Summary | |
---|---|
static Parcelable.Creator<PendingRequest.Builder> |
CREATOR
|
Fields inherited from interface android.os.Parcelable |
---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor Summary | |
---|---|
PendingRequest.Builder()
No-arg constructor -> empty builder |
|
PendingRequest.Builder(String action,
Class<?> cls)
Convenient constructor -> builder with action and class |
|
PendingRequest.Builder(String action,
Context pkg,
Class<?> cls)
Convenient constructor -> builder with action and component |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Parcelable.Creator<PendingRequest.Builder> CREATOR
Constructor Detail |
---|
public PendingRequest.Builder()
public PendingRequest.Builder(String action, Class<?> cls)
setAction(String)
,
setComponentName(Class)
public PendingRequest.Builder(String action, Context pkg, Class<?> cls)
setAction(String)
,
setComponent(Context, Class)
Method Detail |
---|
public PendingRequest.Builder setLabel(Label label)
label
- The label
PendingRequest.getLabel()
public PendingRequest.Builder setAction(String action)
action
- The action
PendingRequest.getAction()
,
AgentContract.Intents.ACTION_COMMAND
public PendingRequest.Builder setComponentName(String cls)
PendingRequest.getComponent()
,
setComponent(ComponentName)
public PendingRequest.Builder setComponentName(Class<?> cls)
PendingRequest.getComponent()
,
setComponent(ComponentName)
public PendingRequest.Builder setComponent(Context pkg, String cls)
PendingRequest.getComponent()
,
setComponent(ComponentName)
public PendingRequest.Builder setComponent(Context pkg, Class<?> cls)
PendingRequest.getComponent()
,
setComponent(ComponentName)
public PendingRequest.Builder setComponent(String pkg, String cls)
PendingRequest.getComponent()
,
setComponent(ComponentName)
public PendingRequest.Builder setComponent(ComponentName cmp)
PendingRequest.getComponent()
protected ResId buildDispatch(Uri origin)
public PendingRequest.Builder setDispatchId(int id)
PendingRequest.getDispatch()
public PendingRequest.Builder setDispatch(Context pkg, int id)
PendingRequest.getDispatch()
public PendingRequest.Builder setDispatch(String pkg, int id)
PendingRequest.getDispatch()
public PendingRequest.Builder setDispatch(ResId dsp)
PendingRequest.getDispatch()
public PendingRequest.Builder setContent(Object content)
PendingRequest.getContent()
public PendingRequest.Builder setMarshalContent(Object content)
public PendingRequest.Builder putBundleContent(String key, int value)
key
- Content keyvalue
- Content value
Request.getBundleIntContent(String)
public PendingRequest.Builder putBundleContent(String key, Parcelable value)
key
- Content keyvalue
- Content value
Request.getBundleParcelableContent(String)
public PendingRequest.Builder putBundleContent(String key, String value)
key
- Content keyvalue
- Content value
Request.getBundleStringContent(String)
public PendingRequest build(Uri origin)
null
dispatch
origin
- Uri to extract missing data from
public PendingRequest build(Request request)
request
- Request to extract missing origin data from
build(Uri)
public PendingRequest build(Response response)
response
- Response to extract missing origin data from
build(Uri)
public int describeContents()
describeContents
in interface Parcelable
public PendingRequest.Builder clone()
clone
in class Object
public void writeToParcel(Parcel parcel, int flags)
writeToParcel
in interface Parcelable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |