Package org.drinkless.tdlib
Class TdApi.PhoneNumberAuthenticationSettings
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PhoneNumberAuthenticationSettings
- Enclosing class:
- TdApi
Contains settings for the authentication of the user's phone number.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanPass true if the authentication code may be sent via a flash call to the specified phone number.booleanPass true if the authentication code may be sent via a missed call to the specified phone number.booleanFor official applications only.String[]List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions; for setAuthenticationPhoneNumber only.static final intIdentifier uniquely determining type of the object.For official Android and iOS applications only; pass null otherwise.booleanPass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches.booleanPass true if the authenticated phone number is used on the current device. -
Constructor Summary
ConstructorsConstructorDescriptionContains settings for the authentication of the user's phone number.PhoneNumberAuthenticationSettings(boolean allowFlashCall, boolean allowMissedCall, boolean isCurrentPhoneNumber, boolean hasUnknownPhoneNumber, boolean allowSmsRetrieverApi, TdApi.FirebaseAuthenticationSettings firebaseAuthenticationSettings, String[] authenticationTokens) Contains settings for the authentication of the user's phone number. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
allowFlashCall
public boolean allowFlashCallPass true if the authentication code may be sent via a flash call to the specified phone number. -
allowMissedCall
public boolean allowMissedCallPass true if the authentication code may be sent via a missed call to the specified phone number. -
isCurrentPhoneNumber
public boolean isCurrentPhoneNumberPass true if the authenticated phone number is used on the current device. -
hasUnknownPhoneNumber
public boolean hasUnknownPhoneNumberPass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches. -
allowSmsRetrieverApi
public boolean allowSmsRetrieverApiFor 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. -
firebaseAuthenticationSettings
For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication. -
authenticationTokens
List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions; for setAuthenticationPhoneNumber only. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PhoneNumberAuthenticationSettings
public PhoneNumberAuthenticationSettings()Contains settings for the authentication of the user's phone number. -
PhoneNumberAuthenticationSettings
public PhoneNumberAuthenticationSettings(boolean allowFlashCall, boolean allowMissedCall, boolean isCurrentPhoneNumber, boolean hasUnknownPhoneNumber, boolean allowSmsRetrieverApi, TdApi.FirebaseAuthenticationSettings firebaseAuthenticationSettings, String[] authenticationTokens) Contains settings for the authentication of the user's phone number.- Parameters:
allowFlashCall- Pass true if the authentication code may be sent via a flash call to the specified phone number.allowMissedCall- Pass true if the authentication code may be sent via a missed call to the specified phone number.isCurrentPhoneNumber- Pass true if the authenticated phone number is used on the current device.hasUnknownPhoneNumber- Pass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches.allowSmsRetrieverApi- 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.firebaseAuthenticationSettings- For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication.authenticationTokens- List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions; for setAuthenticationPhoneNumber only.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-