CustomPropertyKey

public classCustomPropertyKeyextendsObject
implementsParcelable

The key to a Custom File Property key-value pair that can be serialized in a Parcel.

Constant Summary

int PRIVATE The custom property is private to this app.
int PUBLIC The custom property is shared with all apps.

Inherited Constant Summary

Field Summary

public static finalCreator<CustomPropertyKey> CREATOR

Public Constructor Summary

CustomPropertyKey(Stringkey, int visibility)
Constructs a CustomPropertyKeyobject.

Public Method Summary

boolean
staticCustomPropertyKey
fromJson(JSONObject jsonObject)
String
int
int
JSONObject
String
void
writeToParcel(Parceldest, int flags)

Inherited Method Summary

Constants

public static final int PRIVATE

The custom property is private to this app.

Constant Value:1

public static final int PUBLIC

The custom property is shared with all apps.

Constant Value:0

Fields

public static finalCreator<CustomPropertyKey> CREATOR

Public Constructors

publicCustomPropertyKey(Stringkey, int visibility)

Constructs aCustomPropertyKey object.

Parameters
key The name of the key. Note that the characters allowed in the name are letters, numbers, and the characters.!@$%^&*()-_/.
visibility The visibility of this custom property; either PUBLICor PRIVATE.

Public Methods

public booleanequals(Objectobj)

public staticCustomPropertyKey fromJson(JSONObject jsonObject)

Throws
JSONException

publicStringgetKey()

public intgetVisibility()

public inthashCode()

publicJSONObject toJson()

Throws
JSONException

publicStringtoString()

public voidwriteToParcel(Parceldest, int flags)