public class Action
extends java.lang.Object
implements android.os.Parcelable
ActionContent
) that could be an image, an audio file or a URL. Providing such a
information depends on the Proximity
value, strictly linked to a distance from the device.
By specifying the proximity we can manage actions triggering process - a smartphone will trigger
the appropriate action depending on its distance from the device. There are two types of actions:
IKontaktCloud
.
Action.Builder
.Modifier and Type | Class and Description |
---|---|
static class |
Action.Builder
Builder class that is used to build
Action instances from values configured by the setters. |
static class |
Action.Type
Enumeration of action type.
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Action> |
CREATOR
Parcelable CREATOR constant.
|
Modifier | Constructor and Description |
---|---|
protected |
Action(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
static Action.Builder |
builder() |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
ActionContent |
getContent()
Returns a content file.
|
java.util.List<java.lang.String> |
getDeviceUniqueIds() |
java.util.UUID |
getId() |
Proximity |
getProximity() |
Action.Type |
getType() |
java.lang.String |
getUrl()
Returns a URL.
|
int |
hashCode() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Action> CREATOR
public static Action.Builder builder()
public java.util.UUID getId()
public Action.Type getType()
public Proximity getProximity()
public java.lang.String getUrl()
type == Type.CONTENT
then null
value will be returned.public ActionContent getContent()
type == Type.BROWSER
then null
value will be returned.public java.util.List<java.lang.String> getDeviceUniqueIds()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable