Package com.drake.serialize.intent

Functions

Link copied to clipboard
inline fun <T> Activity?.bundle(defValue: T? = null, name: String? = null): ReadWriteProperty<Activity?, T>
inline fun <T> Fragment?.bundle(defValue: T? = null, name: String? = null): ReadWriteProperty<Fragment?, T>

从序列化中检索到数据

Link copied to clipboard
inline fun <T> Fragment?.bundleLazy(name: String? = null, crossinline defValue: () -> T): ReadWriteProperty<Fragment?, T>
inline fun <T> FragmentActivity?.bundleLazy(name: String? = null, crossinline defValue: () -> T): ReadWriteProperty<FragmentActivity?, T>

从序列化中检索到数据

Link copied to clipboard
fun Intent.clearTask(): Intent
Link copied to clipboard
fun Intent.clearTop(): Intent
Link copied to clipboard
fun Intent.excludeFromRecents(): Intent
Link copied to clipboard
inline fun <T : Any> Context.intentOf(vararg params: Pair<String, Any?>): Intent
inline fun <T : Any> Fragment.intentOf(vararg params: Pair<String, Any?>): Intent
Link copied to clipboard
fun Intent.multipleTask(): Intent
Link copied to clipboard
fun Intent.newDocument(): Intent
Link copied to clipboard
fun Intent.newTask(): Intent
Link copied to clipboard
fun Intent.noAnimation(): Intent
Link copied to clipboard
fun Intent.noHistory(): Intent
Link copied to clipboard
inline fun <T : Activity> Context.openActivity(vararg params: Pair<String, Any?>)
inline fun <T : Activity> Fragment.openActivity(vararg params: Pair<String, Any?>)
Link copied to clipboard
inline fun <T : Activity> Activity.openActivityForResult(requestCode: Int, vararg params: Pair<String, Any?>)
inline fun <T : Activity> Fragment.openActivityForResult(requestCode: Int, vararg params: Pair<String, Any?>)
Link copied to clipboard
fun Intent.singleTop(): Intent
Link copied to clipboard
inline fun <T : Service> Context.startService(vararg params: Pair<String, Any?>): ComponentName?
inline fun <T : Service> Fragment.startService(vararg params: Pair<String, Any?>): ComponentName?
Link copied to clipboard
inline fun <T : Service> Context.stopService(vararg params: Pair<String, Any?>): Boolean
inline fun <T : Service> Fragment.stopService(vararg params: Pair<String, Any?>): Boolean?
Link copied to clipboard
fun <T : Fragment> T.withArguments(vararg params: Pair<String, Any?>): T

fun Intent.withArguments(vararg pairs: Pair<String, Any?>): Intent

意图添加数据