encode
TypeScriptencode(coder: _Foundation_NSCoder): voidSwift declarationoverride dynamic func encode(with coder: NSCoder)class · iOS 26.0+ · SDK 27.1
@objc class ASAuthorizationAccountCreationPlatformPublicKeyCredentialRequestencode(coder: _Foundation_NSCoder): voidSwift declarationoverride dynamic func encode(with coder: NSCoder)get shouldRequestName(): booleanSwift declarationfinal let shouldRequestName: BoolWhether to request the user's name.
get relyingPartyIdentifier(): stringSwift declarationfinal let relyingPartyIdentifier: StringThe Relying Party to register the passkey with, generally a domain name.
get acceptedContactIdentifiers(): Array<ASContactIdentifierRequest>Swift declarationfinal let acceptedContactIdentifiers: [ASContactIdentifierRequest]An ordered list of contact identifiers that the user can choose from during account creation. The order of this list indicates preference. Exactly one contact identifier from this list will be included in the response.
get userID(): ArrayBufferSwift declarationfinal let userID: DataA stable, opaque identifier for the created account. This will be saved as the userID for the created passkey.
get challenge(): ArrayBufferSwift declarationfinal let challenge: DataA single-use challenge to be signed by the created passkey.
No declarations were skipped in this snapshot.