PhoneNumberAuthenticationSettings class final

Contains settings for the authentication of the user's phone number

Inheritance

Constructors

PhoneNumberAuthenticationSettings({required bool allowFlashCall, required bool allowMissedCall, required bool isCurrentPhoneNumber, required bool allowSmsRetrieverApi, FirebaseAuthenticationSettings? firebaseAuthenticationSettings, required List<String> authenticationTokens})
Contains settings for the authentication of the user's phone number
const
PhoneNumberAuthenticationSettings.fromJson(Map<String, dynamic> json)
Parses a PhoneNumberAuthenticationSettings from TDLib JSON.
factory

Properties

allowFlashCall → bool
Pass true if the authentication code may be sent via a flash call to the specified phone number
final
allowMissedCall → bool
Pass true if the authentication code may be sent via a missed call to the specified phone number
final
allowSmsRetrieverApi → bool
For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play Services >= 10.2) to automatically receive the authentication code from the SMS. See https://developers.google.com/identity/sms-retriever/ for more details
final
authenticationTokens → List<String>
List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
firebaseAuthenticationSettings → FirebaseAuthenticationSettings?
For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication
final
hashCode → int
The hash code for this object.
no setterinherited
isCurrentPhoneNumber → bool
Pass true if the authenticated phone number is used on the current device
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? allowFlashCall, bool? allowMissedCall, bool? isCurrentPhoneNumber, bool? allowSmsRetrieverApi, FirebaseAuthenticationSettings? firebaseAuthenticationSettings()?, List<String>? authenticationTokens}) → PhoneNumberAuthenticationSettings
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.