public class

Assets

extends Object
implements Parcelable
java.lang.Object
   ↳ com.urbanairship.iam.assets.Assets

Class Overview

Assets for an in-app message. All assets are stored on disk in the app's cache directory.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
int describeContents()
File file(String key)
Gets the file for the asset for the given key.
JsonValue getMetadata(String key)
Gets metadata for a key.
void setMetadata(String key, JsonSerializable value)
Sets metadata.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public int describeContents ()

public File file (String key)

Gets the file for the asset for the given key.

Parameters
key The key.
Returns
  • The asset's file.

public JsonValue getMetadata (String key)

Gets metadata for a key.

Parameters
key The key.
Returns
  • The metadata for the key.

public void setMetadata (String key, JsonSerializable value)

Sets metadata.

Parameters
key The key.
value The value.

public void writeToParcel (Parcel dest, int flags)