java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PhoneNumberAuthenticationSettings
- Enclosing class:
- TdApi
Contains settings for the authentication
of the user's phone number.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Pass true if the authentication code may be sent via a flash call to the specified phone number.boolean
Pass true if the authentication code may be sent via a missed call to the specified phone number.boolean
For official applications only.String[]
List of authentication tokens, received in updateOption("authentication_token") in previously logged out sessions.static final int
boolean
Pass true if the authenticated phone number is used on the current device. -
Constructor Summary
ConstructorDescriptionContains settings for the authentication of the user's phone number.PhoneNumberAuthenticationSettings
(boolean allowFlashCall, boolean allowMissedCall, boolean isCurrentPhoneNumber, boolean allowSmsRetrieverApi, String[] authenticationTokens) Contains settings for the authentication of the user's phone number.Contains settings for the authentication of the user's phone number. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, 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. -
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. -
authenticationTokens
List of authentication tokens, received in updateOption("authentication_token") in previously logged out sessions. -
CONSTRUCTOR
public static final int CONSTRUCTOR- 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 allowSmsRetrieverApi, String[] authenticationTokens) Contains settings for the authentication of the user's phone number.- Parameters:
allowFlashCall
- boolean Pass true if the authentication code may be sent via a flash call to the specified phone number.allowMissedCall
- boolean Pass true if the authentication code may be sent via a missed call to the specified phone number.isCurrentPhoneNumber
- boolean Pass true if the authenticated phone number is used on the current device.allowSmsRetrieverApi
- boolean 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.authenticationTokens
- String[] List of authentication tokens, received in updateOption("authentication_token") in previously logged out sessions.
-
PhoneNumberAuthenticationSettings
Contains settings for the authentication of the user's phone number.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-