CSContext

Constructors

Link copied to clipboard
constructor()
constructor(context: Context)
constructor(parent: CSContext)
constructor(parent: CSHasContext)
constructor(parent: CSHasDestruct, context: Context)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val assets: AssetManager?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val baseContext: Context?
Link copied to clipboard
open val cacheDir: File?
Link copied to clipboard
Link copied to clipboard
open val codeCacheDir: File?
Link copied to clipboard
Link copied to clipboard
override val context: Context
Link copied to clipboard
open val dataDir: File?
Link copied to clipboard
open val deviceId: Int
Link copied to clipboard
open val display: Display?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val externalCacheDirs: Array<out File?>?
Link copied to clipboard
open val externalMediaDirs: Array<out File?>?
Link copied to clipboard
open val filesDir: File?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val mainLooper: Looper?
Link copied to clipboard
Link copied to clipboard
open val obbDir: File?
Link copied to clipboard
open val obbDirs: Array<out File?>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val packageName: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val resources: Resources?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val wallpaper: Drawable?

Functions

Link copied to clipboard
fun <T> CSHasDestruct.atomicProperty(value: T, onChange: (value: T) -> Unit? = null): CSAtomicProperty<T>
Link copied to clipboard
Link copied to clipboard
open fun bindIsolatedService(service: Intent, flags: Context.BindServiceFlags, instanceName: String, executor: Executor, conn: ServiceConnection): Boolean
open fun bindIsolatedService(service: Intent, flags: Int, instanceName: String, executor: Executor, conn: ServiceConnection): Boolean
Link copied to clipboard
open fun bindService(service: Intent, conn: ServiceConnection, flags: Int): Boolean
open fun bindService(service: Intent, flags: Context.BindServiceFlags, executor: Executor, conn: ServiceConnection): Boolean
open fun bindService(service: Intent, flags: Int, executor: Executor, conn: ServiceConnection): Boolean
Link copied to clipboard
open fun bindServiceAsUser(service: Intent, conn: ServiceConnection, flags: Int, user: UserHandle): Boolean
Link copied to clipboard
open fun checkCallingOrSelfPermission(permission: String): Int
Link copied to clipboard
open fun checkCallingOrSelfUriPermission(uri: Uri?, modeFlags: Int): Int
Link copied to clipboard
open fun checkCallingOrSelfUriPermissions(uris: List<Uri?>, modeFlags: Int): IntArray
Link copied to clipboard
open fun checkCallingPermission(permission: String): Int
Link copied to clipboard
open fun checkCallingUriPermission(uri: Uri?, modeFlags: Int): Int
Link copied to clipboard
open fun checkCallingUriPermissions(uris: List<Uri?>, modeFlags: Int): IntArray
Link copied to clipboard
open fun checkContentUriPermissionFull(uri: Uri, pid: Int, uid: Int, modeFlags: Int): Int
Link copied to clipboard
open fun checkPermission(permission: String, pid: Int, uid: Int): Int
Link copied to clipboard
open fun checkSelfPermission(permission: String): Int
Link copied to clipboard
open fun checkUriPermission(uri: Uri?, pid: Int, uid: Int, modeFlags: Int): Int
open fun checkUriPermission(uri: Uri?, readPermission: String?, writePermission: String?, pid: Int, uid: Int, modeFlags: Int): Int
Link copied to clipboard
open fun checkUriPermissions(uris: List<Uri?>, pid: Int, uid: Int, modeFlags: Int): IntArray
Link copied to clipboard
open fun clearWallpaper()
Link copied to clipboard
open fun createAttributionContext(attributionTag: String?): Context
Link copied to clipboard
open fun createConfigurationContext(overrideConfiguration: Configuration): Context?
Link copied to clipboard
open fun createContext(contextParams: ContextParams): Context
Link copied to clipboard
open fun createContextForSplit(splitName: String?): Context?
Link copied to clipboard
open fun createDeviceContext(deviceId: Int): Context
Link copied to clipboard
open fun createDisplayContext(display: Display): Context?
Link copied to clipboard
open fun createPackageContext(packageName: String?, flags: Int): Context?
Link copied to clipboard
open fun createWindowContext(type: Int, options: Bundle?): Context
open fun createWindowContext(display: Display, type: Int, options: Bundle?): Context
Link copied to clipboard
open fun databaseList(): Array<out String?>?
Link copied to clipboard
fun CSHasRegistrations.debouncer(function: suspend () -> Unit): CSDebouncer
fun CSHasRegistrations.debouncer(dispatcher: CoroutineContext = Main, function: suspend () -> Unit): CSDebouncer
fun CSHasRegistrations.debouncer(after: Duration, function: suspend () -> Unit): CSDebouncer
fun CSHasRegistrations.debouncer(scope: CoroutineScope, function: suspend () -> Unit): CSDebouncer
fun CSHasRegistrations.debouncer(dispatcher: CoroutineContext = Main, after: Duration, function: suspend () -> Unit): CSDebouncer
Link copied to clipboard
open fun deleteDatabase(name: String?): Boolean
Link copied to clipboard
open fun deleteFile(name: String?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun enforceCallingOrSelfPermission(permission: String, message: String?)
Link copied to clipboard
open fun enforceCallingOrSelfUriPermission(uri: Uri?, modeFlags: Int, message: String?)
Link copied to clipboard
open fun enforceCallingPermission(permission: String, message: String?)
Link copied to clipboard
open fun enforceCallingUriPermission(uri: Uri?, modeFlags: Int, message: String?)
Link copied to clipboard
open fun enforcePermission(permission: String, pid: Int, uid: Int, message: String?)
Link copied to clipboard
open fun enforceUriPermission(uri: Uri?, pid: Int, uid: Int, modeFlags: Int, message: String?)
open fun enforceUriPermission(uri: Uri?, readPermission: String?, writePermission: String?, pid: Int, uid: Int, modeFlags: Int, message: String?)
Link copied to clipboard
open fun fileList(): Array<out String?>?
Link copied to clipboard
fun getColor(id: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun getDatabasePath(name: String?): File?
Link copied to clipboard
open fun getDir(name: String?, mode: Int): File?
Link copied to clipboard
Link copied to clipboard
open fun getExternalFilesDir(type: String?): File?
Link copied to clipboard
open fun getExternalFilesDirs(type: String?): Array<out File?>?
Link copied to clipboard
open fun getFileStreamPath(name: String?): File?
Link copied to clipboard
Link copied to clipboard
fun getString(resId: Int): String
fun getString(resId: Int, vararg formatArgs: Any?): String
Link copied to clipboard
fun <T : Any?> getSystemService(serviceClass: Class<T?>): T?
open fun getSystemService(name: String): Any?
Link copied to clipboard
open fun getSystemServiceName(serviceClass: Class<*>): String?
Link copied to clipboard
fun getText(resId: Int): CharSequence
Link copied to clipboard
open fun grantUriPermission(toPackage: String?, uri: Uri?, modeFlags: Int)
Link copied to clipboard
inline fun CSHasDestruct.later(@MainThread crossinline function: () -> Unit)
inline fun CSHasRegistrations.later(after: Int, crossinline function: () -> Unit): CSRegistration
inline fun CSHasRegistrations.later(after: Duration, crossinline function: () -> Unit): CSRegistration
Link copied to clipboard
fun CSHasRegistrations.laterOnce(function: suspend () -> Unit): CSLaterOnceFunc
fun CSHasRegistrations.laterOnce(after: Duration, function: suspend () -> Unit): CSLaterOnceFunc
fun CSHasRegistrations.laterOnce(dispatcher: CoroutineDispatcher = Main, function: suspend () -> Unit): CSLaterOnceFunc
fun CSHasRegistrations.laterOnce(dispatcher: CoroutineDispatcher = Main, after: Duration, function: suspend () -> Unit): CSLaterOnceFunc
Link copied to clipboard
Link copied to clipboard
fun CSHasRegistrations.launch(dispatcher: CoroutineContext = Main, func: suspend (JobRegistration) -> Unit): JobRegistration
fun CSHasRegistrations.launch(key: String, dispatcher: CoroutineContext = Main, func: suspend (JobRegistration) -> Unit): JobRegistration
fun CSHasRegistrations.launch(scope: CoroutineScope, context: CoroutineContext = Main, func: suspend (JobRegistration) -> Unit): JobRegistration
Link copied to clipboard
fun CSHasRegistrations.launchIfNot(key: String, dispatcher: CoroutineContext = Main, func: suspend (CSRegistration) -> Unit): CSRegistration?
Link copied to clipboard
fun CSHasRegistrations.launchRepeat(delay: Int, start: Boolean = true, dispatcher: CoroutineContext = Main, function: suspend () -> Unit): CSRegistration
fun CSHasRegistrations.launchRepeat(after: Int, delay: Int, start: Boolean = true, dispatcher: CoroutineContext = Main, function: suspend () -> Unit): CSRegistration
fun CSHasRegistrations.launchRepeat(dispatcher: CoroutineContext, delay: Int, after: Int = delay, start: Boolean = true, function: suspend () -> Unit): CSRegistration
fun CSHasRegistrations.launchRepeat(dispatcher: CoroutineContext = Main, delay: Duration = ZERO, after: Duration = delay, start: Boolean = true, function: suspend () -> Unit): CSRegistration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun CSHasRegistrations.listenUntilTrueOnce(hasChange: CSHasChange<Boolean>, crossinline listener: () -> Unit): CSRegistration
Link copied to clipboard
open fun moveDatabaseFrom(sourceContext: Context?, name: String?): Boolean
Link copied to clipboard
open fun moveSharedPreferencesFrom(sourceContext: Context?, name: String?): Boolean
Link copied to clipboard
fun <T> CSHasDestruct.nullAtomicProperty(value: T? = null, onChange: (value: T?) -> Unit? = null): CSAtomicProperty<T?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun CSHasRegistrations.onChangeOnce(event: CSHasChange<*>, crossinline listener: () -> Unit): CSRegistration
inline fun <T> CSHasRegistrations.onChangeOnce(event: CSHasChange<T>, crossinline listener: (argument: T) -> Unit): CSRegistration
Link copied to clipboard
open override fun onDestruct()
Link copied to clipboard
inline fun CSHasDestruct.onDestructed(crossinline func: Fun)
inline fun CSHasDestruct.onDestructed(parent: CSHasRegistrations, crossinline func: Fun)
Link copied to clipboard
inline fun CSHasDestruct.onMain(@MainThread crossinline function: () -> Unit)
Link copied to clipboard
Link copied to clipboard
open fun openFileOutput(name: String?, mode: Int): FileOutputStream?
Link copied to clipboard
Link copied to clipboard
open fun peekWallpaper(): Drawable?
Link copied to clipboard
@JvmName(name = "plusNullable")
operator fun <T : CSRegistration> CSHasRegistrations.plus(registration: T?): T?
@JvmName(name = "plusPairNullable")
operator fun CSHasRegistrations.plus(registration: Pair<String, CSRegistration?>): CSRegistration?
@JvmName(name = "plusRegistrationReplace")
operator fun CSHasRegistrations.plus(registration: Pair<CSRegistration?, CSRegistration>): CSRegistration
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "registerNullable")
fun CSHasRegistrations.register(registration: CSRegistration?): CSRegistration?
@JvmName(name = "registerKeyRegistrationNullable")
fun CSHasRegistrations.register(key: String, registration: CSRegistration?): CSRegistration?
@JvmName(name = "registerReplaceRegistrationNullable")
fun CSHasRegistrations.register(replace: CSRegistration?, registration: CSRegistration?): CSRegistration?
Link copied to clipboard
Link copied to clipboard
open fun registerDeviceIdChangeListener(executor: Executor, listener: IntConsumer)
Link copied to clipboard
open fun registerReceiver(receiver: BroadcastReceiver?, filter: IntentFilter?): Intent?
open fun registerReceiver(receiver: BroadcastReceiver?, filter: IntentFilter?, flags: Int): Intent?
open fun registerReceiver(receiver: BroadcastReceiver?, filter: IntentFilter?, broadcastPermission: String?, scheduler: Handler?): Intent?
open fun registerReceiver(receiver: BroadcastReceiver?, filter: IntentFilter?, broadcastPermission: String?, scheduler: Handler?, flags: Int): Intent?
Link copied to clipboard
open fun removeStickyBroadcast(intent: Intent?)
Link copied to clipboard
open fun removeStickyBroadcastAsUser(intent: Intent?, user: UserHandle?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun revokeUriPermission(uri: Uri?, modeFlags: Int)
open fun revokeUriPermission(targetPackage: String?, uri: Uri?, modeFlags: Int)
Link copied to clipboard
fun <T> CSHasDestruct.safe(property: CSProperty<T>, @AnyThread onChangeUnsafe: (value: T) -> Unit? = null): CSSafeProperty<T>
Link copied to clipboard
@JvmName(name = "eventWithArgument")
inline fun <T> CSHasDestruct.safeEvent(): CSSafeEvent<T>
Link copied to clipboard
fun <T> CSHasDestruct.safeProperty(value: T, onChangeUnsafe: (value: T) -> Unit? = null): CSSafePropertyImpl<T>
fun <T> CSHasDestruct.safeProperty(value: T, onChangeUnsafe: (previous: T, current: T) -> Unit): CSSafePropertyImpl<T>
Link copied to clipboard
Link copied to clipboard
fun <T> CSHasDestruct.safeWeakProperty(value: T? = null, onChangeUnsafe: (value: T?) -> Unit? = null): CSProperty<T?>
Link copied to clipboard
open fun sendBroadcast(intent: Intent?)
open fun sendBroadcast(intent: Intent?, receiverPermission: String?)
open fun sendBroadcast(intent: Intent, receiverPermission: String?, options: Bundle?)
Link copied to clipboard
open fun sendBroadcastAsUser(intent: Intent?, user: UserHandle?)
open fun sendBroadcastAsUser(intent: Intent?, user: UserHandle?, receiverPermission: String?)
Link copied to clipboard
open fun sendBroadcastWithMultiplePermissions(intent: Intent, receiverPermissions: Array<out String?>)
Link copied to clipboard
open fun sendOrderedBroadcast(intent: Intent?, receiverPermission: String?)
open fun sendOrderedBroadcast(intent: Intent, receiverPermission: String?, options: Bundle?)
open fun sendOrderedBroadcast(intent: Intent, receiverPermission: String?, resultReceiver: BroadcastReceiver?, scheduler: Handler?, initialCode: Int, initialData: String?, initialExtras: Bundle?)
open fun sendOrderedBroadcast(intent: Intent, receiverPermission: String?, options: Bundle?, resultReceiver: BroadcastReceiver?, scheduler: Handler?, initialCode: Int, initialData: String?, initialExtras: Bundle?)
open fun sendOrderedBroadcast(intent: Intent, receiverPermission: String?, receiverAppOp: String?, resultReceiver: BroadcastReceiver?, scheduler: Handler?, initialCode: Int, initialData: String?, initialExtras: Bundle?)
open fun sendOrderedBroadcast(intent: Intent, initialCode: Int, receiverPermission: String?, receiverAppOp: String?, resultReceiver: BroadcastReceiver?, scheduler: Handler?, initialData: String?, initialExtras: Bundle?, options: Bundle?)
Link copied to clipboard
open fun sendOrderedBroadcastAsUser(intent: Intent?, user: UserHandle?, receiverPermission: String?, resultReceiver: BroadcastReceiver?, scheduler: Handler?, initialCode: Int, initialData: String?, initialExtras: Bundle?)
Link copied to clipboard
open fun sendStickyBroadcast(intent: Intent?)
open fun sendStickyBroadcast(intent: Intent, options: Bundle?)
Link copied to clipboard
open fun sendStickyBroadcastAsUser(intent: Intent?, user: UserHandle?)
Link copied to clipboard
open fun sendStickyOrderedBroadcast(intent: Intent?, resultReceiver: BroadcastReceiver?, scheduler: Handler?, initialCode: Int, initialData: String?, initialExtras: Bundle?)
Link copied to clipboard
open fun sendStickyOrderedBroadcastAsUser(intent: Intent?, user: UserHandle?, resultReceiver: BroadcastReceiver?, scheduler: Handler?, initialCode: Int, initialData: String?, initialExtras: Bundle?)
Link copied to clipboard
open fun setTheme(resid: Int)
Link copied to clipboard
open fun setWallpaper(bitmap: Bitmap?)
open fun setWallpaper(data: InputStream?)
Link copied to clipboard
open fun startActivities(intents: Array<out Intent?>?)
open fun startActivities(intents: Array<out Intent?>?, options: Bundle?)
Link copied to clipboard
open fun startActivity(intent: Intent?)
open fun startActivity(intent: Intent?, options: Bundle?)
Link copied to clipboard
Link copied to clipboard
open fun startInstrumentation(className: ComponentName, profileFile: String?, arguments: Bundle?): Boolean
Link copied to clipboard
open fun startIntentSender(intent: IntentSender?, fillInIntent: Intent?, flagsMask: Int, flagsValues: Int, extraFlags: Int)
open fun startIntentSender(intent: IntentSender?, fillInIntent: Intent?, flagsMask: Int, flagsValues: Int, extraFlags: Int, options: Bundle?)
Link copied to clipboard
open fun startService(service: Intent?): ComponentName?
Link copied to clipboard
open fun stopService(name: Intent?): Boolean
Link copied to clipboard
fun CSHasRegistrations.throttler(function: suspend () -> Unit): CSThrottler<Unit>
fun <T> CSHasRegistrations.throttler(function: suspend (T) -> Unit): CSThrottler<T>
fun CSHasRegistrations.throttler(dispatcher: CoroutineContext = Main, function: suspend () -> Unit): CSThrottler<Unit>
fun <T> CSHasRegistrations.throttler(dispatcher: CoroutineContext = Main, function: suspend (T) -> Unit): CSThrottler<T>
fun CSHasRegistrations.throttler(after: Duration, function: suspend () -> Unit): CSThrottler<Unit>
fun <T> CSHasRegistrations.throttler(after: Duration, function: suspend (T) -> Unit): CSThrottler<T>
fun CSHasRegistrations.throttler(dispatcher: CoroutineContext = Main, after: Duration, function: suspend () -> Unit): CSThrottler<Unit>
fun <T> CSHasRegistrations.throttler(dispatcher: CoroutineContext = Main, after: Duration, function: suspend (T) -> Unit): CSThrottler<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun updateServiceGroup(conn: ServiceConnection, group: Int, importance: Int)