RegistrationRequest
public
final
class
RegistrationRequest
extends Object
implements
Parcelable
| java.lang.Object | |
| ↳ | android.app.personalcontext.understander.RegistrationRequest |
Request to register a personal context understander. RegistrationRequest is passed to
the registration activity in the understander's package that implements
ERROR(PersonalContextManager.ACTION_LAUNCH_PERSONAL_CONTEXT_UNDERSTANDER_CONSENT_INTRO/android.service.personalcontext.PersonalContextManager#ACTION_LAUNCH_PERSONAL_CONTEXT_UNDERSTANDER_CONSENT_INTRO PersonalContextManager.ACTION_LAUNCH_PERSONAL_CONTEXT_UNDERSTANDER_CONSENT_INTRO) in the
ERROR(PersonalContextManager.EXTRA_PERSONAL_CONTEXT_UNDERSTANDER_CONSENT_INTRO_REQUEST/android.service.personalcontext.PersonalContextManager#EXTRA_PERSONAL_CONTEXT_UNDERSTANDER_CONSENT_INTRO_REQUEST PersonalContextManager.EXTRA_PERSONAL_CONTEXT_UNDERSTANDER_CONSENT_INTRO_REQUEST) extra.
It is used in formulating the response to the registration request. If no such activity is
specified in the manifest, the registration flow will automatically continue to the system
prompt for user consent.
See also:
Summary
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<RegistrationRequest> |
CREATOR
|
Public methods | |
|---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
ComponentName
|
getComponentName()
Returns the ComponentName of the understander to be registered. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
Fields
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(Parcel,int),
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR bit.
| Returns | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or
|
getComponentName
public ComponentName getComponentName ()
Returns the ComponentName of the understander to be registered.
| Returns | |
|---|---|
ComponentName |
This value cannot be null. |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
int: Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:
|