Builder

class Builder : SessionConfigBuilder<ApiConfig>

Provides ApiConfig builder.

Constructors

Link copied to clipboard
fun Builder()

Functions

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

Builds SessionConfig instance.

Properties

Link copied to clipboard
var defaultTweetMode: TweetMode

Sets default value for tweetMode parameter. Learn more at Tweet updates.

Link copied to clipboard
var emulationMode: EmulationMode

Sets emulationMode which is used to access Twitter Private endpoints. For example, to access Cards API, you must set this EmulationMode.TwitterForiPhone.

Link copied to clipboard
var skipEmulationChecking: Boolean = false

Skips emulationMode checking if true. It means that you may access Twitter Private endpoints despite using non-official application.

Extensions

Link copied to clipboard
fun ApiConfig.Builder.skipEmulationChecking()

Skips emulationMode checking.