Package org.matrix.android.sdk.api.util

Types

Link copied to clipboard
interface BuildVersionSdkIntProvider
Link copied to clipboard
interface Cancelable

An interface defining a unique cancel method. It should be used with methods you want to be able to cancel, such as ones interacting with Web Services.

Link copied to clipboard
class CancelableBag : Cancelable, MutableList<Cancelable>
Link copied to clipboard
object ContentUtils
Link copied to clipboard
class DefaultBuildVersionSdkIntProvider @Inject constructor : BuildVersionSdkIntProvider
Link copied to clipboard
typealias JsonDict = Map<String, @JvmSuppressWildcards Any>
Link copied to clipboard
sealed class MatrixItem
Link copied to clipboard
object MatrixJsonParser

Entry point to get a Json parser.

Link copied to clipboard
object MimeTypes
Link copied to clipboard
object NoOpCancellable : Cancelable
Link copied to clipboard
data class Optional<T : Any>(value: T?)
Link copied to clipboard
object StringOrderUtils
Link copied to clipboard
data class TextContent(val text: String, val formattedText: String? = null)

Contains a text and eventually a formatted text.

Functions

Link copied to clipboard
fun StringBuilder.appendParamsToUrl(params: Map<String, String>): StringBuilder
Link copied to clipboard
fun StringBuilder.appendParamToUrl(param: String, value: String): StringBuilder

Append param and value to a Url, using "?" or "&". Value parameter will be encoded Return this for chaining purpose

Link copied to clipboard
inline suspend fun <T> awaitCallback(crossinline callback: (MatrixCallback<T>) -> Unit): T
Link copied to clipboard
fun String.fromBase64(): ByteArray
Link copied to clipboard
fun PackageManager.getApplicationInfoCompat(packageName: String, flags: Int): ApplicationInfo
Link copied to clipboard
fun PackageManager.getPackageInfoCompat(packageName: String, flags: Int): PackageInfo
Link copied to clipboard
fun String.md5(): String

Compute a Hash of a String, using md5 algorithm.

Link copied to clipboard
fun ByteArray.toBase64NoPadding(): String
Link copied to clipboard
Link copied to clipboard
fun RoomMemberSummary.toMatrixItem(): MatrixItem.UserItem
fun RoomSummary.toMatrixItem(): MatrixItem
fun SpaceChildInfo.toMatrixItem(): MatrixItem
fun PublicRoom.toMatrixItem(): MatrixItem.RoomItem
fun SenderInfo.toMatrixItem(): MatrixItem.UserItem
fun User.toMatrixItem(): MatrixItem.UserItem
Link copied to clipboard
fun SenderInfo.toMatrixItemOrNull(): MatrixItem.UserItem?
Link copied to clipboard
fun <T : Any> T?.toOption(): Optional<T>
Link copied to clipboard
fun <T : Any> T?.toOptional(): Optional<T>
Link copied to clipboard

Properties

Link copied to clipboard
val emptyJsonDict: Map<String, Any>