MainViewModel
class MainViewModel @Inject constructor(repository: MessengerRepository, connectionManager: ConnectionManager, proxyManager: ProxyManager, invizibleHelper: InvizibleHelper) : ViewModel
Constructors
Link copied to clipboard
@Inject
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun continueAuth(protocol: ProtocolId, fields: Map<String, String>, onResult: (ConnectionResult) -> Unit)
Link copied to clipboard
fun continueRegistration(protocol: ProtocolId, sessionId: String, fields: Map<String, String>, onResult: (RegistrationResult) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reachable SOCKS host/port for the current proxy — used by the registration WebView fallback.
Link copied to clipboard
Link copied to clipboard
fun sendMessage(conversationId: String, protocol: ProtocolId, body: String, onResult: (Boolean) -> Unit)
Link copied to clipboard
fun startConversation(protocol: ProtocolId, remoteId: String, message: String?, accountId: String? = null, onResult: (String?) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard