AppModel

interface AppModel

Types

Result
Link copied to clipboard
class Result<T>(onResult: (T) -> Unit)

Functions

authorize
Link copied to clipboard
abstract fun authorize(onResult: (Completion<String?>) -> Unit)
close
Link copied to clipboard
abstract fun close()
disable
Link copied to clipboard
abstract fun disable(host: String)
endSession
Link copied to clipboard
abstract fun endSession(onResult: (LogoutResponse) -> Unit)
getAccessToken
Link copied to clipboard
abstract fun getAccessToken(reason: InvalidTokenReason, oldToken: String?, onResult: (Completion<GetAccessTokenResponse>) -> Unit)
getConfig
Link copied to clipboard
abstract fun getConfig(key: String, config: (String?) -> Unit)
isAppRedirectAllowed
Link copied to clipboard
abstract fun isAppRedirectAllowed(app: String, isAllowed: (Boolean) -> Unit)
isRemoteConfigAvailable
Link copied to clipboard
abstract fun isRemoteConfigAvailable(isAvailable: (Boolean) -> Unit)
isSignedIn
Link copied to clipboard
abstract fun isSignedIn(isSignedIn: (Boolean) -> Unit)
logEvent
Link copied to clipboard
abstract fun logEvent(key: String, parameters: Map<String, Any>)
onCustomSchemeError
Link copied to clipboard
abstract fun onCustomSchemeError(context: Context?, scheme: String)
onImageDataReceived
Link copied to clipboard
abstract fun onImageDataReceived(bitmap: Bitmap)
onLogin
Link copied to clipboard
abstract fun onLogin(context: Context, result: Completion<String?>)
onLogout
Link copied to clipboard
abstract fun onLogout(onResult: (LogoutResponse) -> Unit)
onShareTextReceived
Link copied to clipboard
abstract fun onShareTextReceived(text: String, title: String)
openUrlInNewTab
Link copied to clipboard
abstract fun openUrlInNewTab(openURLInNewTabRequest: OpenURLInNewTabRequest)
reset
Link copied to clipboard
abstract fun reset()
setUserProperty
Link copied to clipboard
abstract fun setUserProperty(key: String, value: String, update: Boolean)
showShareSheet
Link copied to clipboard
abstract fun showShareSheet(bitmap: Bitmap)
abstract fun showShareSheet(text: String, title: String)

Properties

authorize
Link copied to clipboard
abstract val authorize: LiveData<Event<AppModel.Result<Completion<String?>>>>
callback
Link copied to clipboard
abstract var callback: AppCallbackImpl?
close
Link copied to clipboard
abstract val close: LiveData<Unit>
endSession
Link copied to clipboard
abstract val endSession: LiveData<Event<AppModel.Result<LogoutResponse>>>
openUrlInNewTab
Link copied to clipboard
abstract val openUrlInNewTab: LiveData<OpenURLInNewTabRequest>

Inheritors

AppModelImpl
Link copied to clipboard