Builder

class Builder : SessionConfigBuilder<Credentials>

Builder of Credentials.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
open override fun build(): Credentials

Builds SessionConfig instance.

Properties

Link copied to clipboard
var accessToken: String? = null

Access token for your account.

Link copied to clipboard
var accessTokenSecret: String? = null

Access token secret for your account.

Link copied to clipboard
var bearerToken: String? = null

Bearer token for your account.

Link copied to clipboard
var consumerKey: String? = null

Consumer key for your application.

Link copied to clipboard
var consumerSecret: String? = null

Consumer secret for your application.

Link copied to clipboard
var knownDeviceToken: String? = null

Known device token for your account. Used only when emulationMode is OfficialClient.OAuth1a.TwitterForiPhone.

Extensions

Link copied to clipboard
fun Credentials.Builder.application(consumerKey: String, consumerSecret: String)

Configures your application with consumer key and consumer secret.

fun Credentials.Builder.application(client: OfficialClient.OAuth1a)

Configures your application with predefined OAuth 1.0a client.

Link copied to clipboard
fun Credentials.Builder.token(accessToken: String, accessTokenSecret: String)

Configures your account with access token and access token secret.

fun Credentials.Builder.token(bearerToken: String)

Configures your account with bearer token.

fun Credentials.Builder.token(client: OfficialClient.OAuth2)

Configures your account with predefined OAuth 2 client.