Tiki Sdk
class TikiSdk
The TIKI SDK main class. Use this to add tokenized data ownership, consent, and rewards.
Constructors
Functions
Link copied to clipboard
suspend fun applyConsent(source: String, destination: TikiSdkDestination, request: () -> Unit, onBlocked: (value: String) -> Unit? = null, origin: String? = null)
Apply consent for a given source and destination.
Link copied to clipboard
suspend fun assignOwnership(source: String, type: TikiSdkDataTypeEnum, contains: List<String>, about: String? = null, origin: String? = null): String
Assign ownership to a given source.
Link copied to clipboard
Gets latest consent given for a source and origin.
Link copied to clipboard
Get ownership
Link copied to clipboard
suspend fun modifyConsent(ownershipId: String, destination: TikiSdkDestination, about: String? = null, reward: String? = null, expiry: Date? = null): TikiSdkConsent
Modify consent for an ownership identified by ownershipId.