Offer

class Offer

An Offer for creating a LicenseRecord for a title identified by ptr.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(): TikiSdk

Adds the built Offer to the TikiSdk.offers list

Link copied to clipboard
fun bullet(text: String, used: Boolean): Offer

Adds a Bullet

Link copied to clipboard
fun description(description: String): Offer

Sets the description

Link copied to clipboard
fun duration(time: Long, unit: TimeUnit): Offer

Set the expiration of the LicenseRecord

Link copied to clipboard
fun id(id: String): Offer

Sets the id

Link copied to clipboard
fun permission(permission: Permission): Offer

Adds an item to the permission list.

Link copied to clipboard
fun ptr(ptr: String): Offer

Sets the ptr

Link copied to clipboard
fun reward(reward: Drawable): Offer

Sets the reward

Link copied to clipboard
fun tag(tag: Tag): Offer

Adds an item to the tags list.

Link copied to clipboard
fun terms(context: Context, filename: String): Offer

Set terms

Link copied to clipboard
fun use(usecases: List<Usecase>, destinations: List<String> = mutableListOf()): Offer

Adds an item to the uses list.

Properties

Link copied to clipboard

The bullets that describes how the user data will be used.

Link copied to clipboard

A human-readable description for the license.

Link copied to clipboard
val expiry: Date?

The expiration of the License. Null for no expiration.

Link copied to clipboard
val id: String

The Offer unique identifier. If none is set, it creates a random UUID.

Link copied to clipboard

A list of device-specific Manifest.permission required for the license.

Link copied to clipboard
val ptr: String

The Pointer Record of the data stored.

Link copied to clipboard

An image that represents the reward.

Link copied to clipboard
val tags: List<Tag>

The tags that describes the represented data asset.

Link copied to clipboard

The legal terms of the offer.

Link copied to clipboard
val uses: List<Use>

The Use cases for the license.