RegisterCreationOptionsRequest

class RegisterCreationOptionsRequest : Parcelable


A registration request to store provision / creation candidates' metadata and matcher logic.

Summary

Public constructors

RegisterCreationOptionsRequest(
    createOptions: ByteArray,
    matcher: ByteArray,
    type: String,
    id: String,
    fulfillmentActionName: String
)

constructs an instance of RegisterCreationOptionsRequest

Public functions

final Int
open Unit
writeToParcel(dest: Parcel, flags: Int)

Public properties

ByteArray

the creation candidates data used for display and matching purpose, as a ByteArray blob

String

optionally specify a different intent action to be used for launching the fulfillment activity when one of the registered credentials is selected by the user; otherwise, the default action "androidx.credentials.registry.provider.action.CREATE_CREDENTIAL" will be used

String

the id of the given registry data, so as not to overwrite existing data of different id

ByteArray

the matcher for the credential info, as a ByteArray blob

String

the type of the creation options registered, matching the CreateCredentialRequest.type that this registry can handle

Public companion properties

Public constructors

RegisterCreationOptionsRequest

RegisterCreationOptionsRequest(
    createOptions: ByteArray,
    matcher: ByteArray,
    type: String,
    id: String,
    fulfillmentActionName: String = ""
)

constructs an instance of RegisterCreationOptionsRequest

Parameters
createOptions: ByteArray

the creation candidates data used for display and matching purpose, as a ByteArray blob

matcher: ByteArray

the matcher for the credential info, as a ByteArray blob

type: String

the type of the creation options registered, matching the CreateCredentialRequest.type that this registry can handle

id: String

the id of the given registry data, so as not to overwrite existing data of different id

fulfillmentActionName: String = ""

optionally specify a different intent action to be used for launching the fulfillment activity when one of the registered credentials is selected by the user; otherwise, the default action "androidx.credentials.registry.provider.action.CREATE_CREDENTIAL" will be used

Public functions

describeContents

final fun describeContents(): Int

writeToParcel

open fun writeToParcel(dest: Parcel, flags: Int): Unit

Public properties

createOptions

val createOptionsByteArray

the creation candidates data used for display and matching purpose, as a ByteArray blob

fulfillmentActionName

val fulfillmentActionNameString

optionally specify a different intent action to be used for launching the fulfillment activity when one of the registered credentials is selected by the user; otherwise, the default action "androidx.credentials.registry.provider.action.CREATE_CREDENTIAL" will be used

id

val idString

the id of the given registry data, so as not to overwrite existing data of different id

matcher

val matcherByteArray

the matcher for the credential info, as a ByteArray blob

type

val typeString

the type of the creation options registered, matching the CreateCredentialRequest.type that this registry can handle