Package renetik.android.controller.extensions

Types

Link copied to clipboard
class CSPropertyCondition<T>(val property: CSProperty<T>, val condition: (T?) -> Boolean?) : CSCondition
Link copied to clipboard
class CSPropertyConditionList(val evaluate: CSPropertyConditionList.() -> Unit)
Link copied to clipboard
enum CSStartActivityResult : Enum<CSStartActivityResult>

Functions

Link copied to clipboard
fun <View : CSViewInterface> ViewGroup.add(view: View): View
fun <View : CSViewInterface> ViewGroup.add(view: View, index: Int = -1): View
fun <View : CSViewInterface> ViewGroup.add(    view: View,     layout: ViewGroup.LayoutParams,     index: Int = -1): View
Link copied to clipboard
fun View.asActivityView(): CSActivityView<*>?
fun ViewParent.asActivityView(): CSActivityView<*>?
Link copied to clipboard
fun CSActivityView<*>.getDeniedPermissions(permissions: List<String>): Array<String>
Link copied to clipboard
fun CSActivityView<*>.goHome()
Link copied to clipboard
fun CSView<*>.height(value: Int): CSView<*>
Link copied to clipboard
fun CSActivityView<*>.isPermissionGranted(permission: String): Boolean
Link copied to clipboard
fun CSActivityView<*>.openUrl(url: String)
Link copied to clipboard
fun <T : View, ViewController : CSActivityView<T>> ViewController.push(): ViewController
fun <T : View, ViewController : CSActivityView<T>> ViewController.push(pushKey: String): ViewController
Link copied to clipboard
fun <T : View, ViewController : CSActivityView<T>> ViewController.pushAsLast(): ViewController
Link copied to clipboard
fun <T : View, ViewController : CSActivityView<T>> ViewController.pushMain(): ViewController
Link copied to clipboard
fun <View : CSViewInterface> ViewGroup.remove(view: View): View
Link copied to clipboard
fun CSActivityView<*>.requestPermissions(permissions: List<String>, onGranted: () -> Unit)
fun CSActivityView<*>.requestPermissions(    permissions: List<String>,     onGranted: () -> Unit? = null,     notGranted: () -> Unit? = null)
Link copied to clipboard
fun CSActivityView<*>.requestPermissionsWithForce(permissions: List<String>, onGranted: () -> Unit)
Link copied to clipboard
fun CSActivityView<*>.restartActivity(): CSRegistration
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>)
Link copied to clipboard
fun CSView<*>.setPercentAspectWidth(view: View, percent: Int)
Link copied to clipboard
fun CSView<*>.setPercentWidth(    view: View,     percent: Int,     minimal: Int = 0,     maximal: Int = 0)
Link copied to clipboard
fun <View : View> View.shownIf(conditions: CSPropertyConditionList.() -> Unit, isInContainer: Boolean = false): View
Link copied to clipboard
fun CSView<*>.size(width: Int, height: Int): CSView<*>
Link copied to clipboard
fun CSActivityView<*>.startActivity(activityClass: Class<out AppCompatActivity>)
fun CSActivityView<*>.startActivity(activityClass: Class<out AppCompatActivity>, extras: Map<String, String>)
Link copied to clipboard
fun CSActivityView<*>.startActivityForResult(intent: Intent, requestCode: Int)
fun CSActivityView<*>.startActivityForResult(activityClass: Class<out AppCompatActivity>, requestCode: Int)
fun CSActivityView<*>.startActivityForResult(    intent: Intent,     onSuccess: (Intent?) -> Unit,     onFailure: (CSStartActivityResult) -> Unit? = null)
Link copied to clipboard
fun <T : CSActivityView<*>> T.startActivityForUri(uri: Uri, onActivityNotFound: (ActivityNotFoundException) -> Unit? = null)
Link copied to clipboard
fun <T : CSActivityView<*>> T.startActivityForUriAndType(    uri: Uri,     type: String?,     onActivityNotFound: (ActivityNotFoundException) -> Unit? = null)
Link copied to clipboard
fun CSActivityView<*>.startApplication(packageName: String)
Link copied to clipboard
fun CSActivityView<*>.switchActivity(intent: Intent)
fun CSActivityView<*>.switchActivity(activityClass: Class<out AppCompatActivity>)
fun CSActivityView<*>.switchActivity(activityClass: Class<out AppCompatActivity>, resultCode: Int)
Link copied to clipboard
fun validate(conditions: CSPropertyConditionList.() -> Unit, onResult: (Boolean) -> Unit)
Link copied to clipboard
fun CSView<*>.width(value: Float): CSView<*>
fun CSView<*>.width(value: Int): CSView<*>
Link copied to clipboard
fun CSView<*>.widthDp(value: Float): CSView<*>
fun CSView<*>.widthDp(value: Int): CSView<*>

Properties

Link copied to clipboard
val CSView<*>.center: CSPoint<Int>
Link copied to clipboard
val <T : View> CSActivityView<T>.fragmentTransaction: FragmentTransaction
Link copied to clipboard
val CSView<*>.height: Int
Link copied to clipboard
val CSActivityView<*>.intent: Intent
Link copied to clipboard
val CSView<*>.layoutHeight: Int
Link copied to clipboard
val CSView<*>.layoutWidth: Int
Link copied to clipboard
val CSView<*>.left: Int
Link copied to clipboard
val CSView<*>.locationOnScreen: CSPoint<Int>
Link copied to clipboard
var <T : View> CSActivityView<T>.requestedOrientation: Int
Link copied to clipboard
val CSView<*>.top: Int
Link copied to clipboard
val CSView<*>.width: Int