Package-level declarations

CSView<V> and CSActivityView<V> — lifecycle-aware view wrappers with parent/child destruction, registrations and activity resume/pause/back hooks.

Types

Link copied to clipboard
Link copied to clipboard
class CSActivityResult(val requestCode: Int, val resultCode: Int, val data: Intent?)
Link copied to clipboard
Link copied to clipboard
class CSOnKeyDownResult(val keyCode: Int, val event: KeyEvent)
Link copied to clipboard
class CSPropertyCondition<T>(val property: CSProperty<T>, val condition: (T?) -> Boolean?) : CSCondition
Link copied to clipboard
Link copied to clipboard
class CSRequestPermissionResult(val requestCode: Int, val permissions: Array<String>, val statuses: IntArray)
Link copied to clipboard

Properties

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

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <CSViewType : CSView<*>> View.asCS(): CSViewType?
Link copied to clipboard
Link copied to clipboard
fun View.asCSView(): CSView<*>?
Link copied to clipboard
fun <T : CSView<*>> T.clearLongClick(): T
Link copied to clipboard
fun <Type : CSView<*>> Type.disabledByAlpha(condition: Boolean = true, disable: Boolean = true)
Link copied to clipboard
fun <Type : CSView<*>> Type.disabledIf(condition: Boolean): Type
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <Type : Any> CSView<*>.find(): Type?
Link copied to clipboard
fun <T : CSViewInterface> T.height(value: Int): T
Link copied to clipboard
fun <T : CSView<*>> T.onClick(function: (view: T) -> Unit): T
fun <T : CSView<*>> T.onClick(action: CSEvent<Unit>): T
fun <T : CSView<*>> T.onClick(action: CSProperty<Boolean>): T
Link copied to clipboard
fun <T : CSView<*>> T.onLongClick(function: (view: T) -> Unit): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Context.openUri(uri: String, appPackage: String? = null): Boolean
Link copied to clipboard
fun CSActivityView<*>.requestPermissions(permissions: List<String>, onGranted: () -> Unit)
fun CSActivity.requestPermissions(permissions: List<String>, onGranted: () -> Unit? = null, onNotGranted: () -> Unit? = null, onDone: () -> Unit? = null)
fun CSActivityView<*>.requestPermissions(permissions: List<String>, onGranted: () -> Unit? = null, onNotGranted: () -> Unit? = null, onDone: () -> Unit? = null)
Link copied to clipboard
fun CSActivityView<*>.requestPermissionsWithForce(permissions: List<String>, onGranted: () -> Unit)
Link copied to clipboard
fun <T : CSView<*>> T.reusable(): T
Link copied to clipboard
fun <T : CSActivityView<*>> T.sendMail(email: String, subject: String, text: String)
fun <T : CSActivityView<*>> T.sendMail(emails: List<String>, subject: String, body: CharSequence, attachment: File)
fun <T : CSActivityView<*>> T.sendMail(emails: List<String>, subject: String, body: CharSequence, attachments: List<File>)
fun CSActivityView<*>.sendMail(picker: String, to: String, subject: String? = null, body: String? = null)
fun CSActivityView<*>.sendMail(pickerTitle: String, to: Array<String> = emptyArray(), cc: Array<String> = emptyArray(), bcc: Array<String> = emptyArray(), subject: String? = null, body: String? = null)
Link copied to clipboard
fun <T : CSViewInterface> T.setPercentAspectWidth(view: View, percent: Int): T
Link copied to clipboard
fun <T : CSViewInterface> T.setPercentWidth(view: View, percent: Int, minimal: Int = 0, maximal: Int = 0): T
Link copied to clipboard
fun <View : View> View.shownIf(conditions: CSPropertyConditionList.() -> Unit, isInContainer: Boolean = false): View
Link copied to clipboard
fun <T : CSViewInterface> T.size(width: Int, height: Int): T
Link copied to clipboard
fun validate(conditions: CSPropertyConditionList.() -> Unit, onResult: (Boolean) -> Unit)
Link copied to clipboard
fun <T : CSViewInterface> T.width(value: Float): T
fun <T : CSViewInterface> T.width(value: Int): T
Link copied to clipboard
fun <T : CSViewInterface> T.widthDp(value: Float): T
fun <T : CSViewInterface> T.widthDp(value: Int): T