When an android.app.Activity
can't be found automatically using
the implicits in iota._
or iota.std.Contexts._
implement this trait
to help the implicit out
When a android.content.Context
can't be found automatically using
the implicits in iota._
or iota.std.Contexts._
implement this trait
to help the implicit out
side-effect tracker.
side-effect tracker. call perform
to execute the side-effects within
type inference currying helper for c
type inference currying helper for c
a type-hint is required when using lp
or lpK
outside of IO[ViewGroup].apply(IO[View]*)
,
use c[ViewGroup](B) => B
to provide B
with the the type hint required to use lp
and lpK
a type-hint is required when using lp
or lpK
outside of IO[ViewGroup].apply(IO[View]*)
,
use c[ViewGroup](B) => B
to provide B
with the the type hint required to use lp
and lpK
create a K-combinator based on a ternary expression.
create a K-combinator based on a ternary expression.
for example: condK(istrue ? (yes => IO[yes]) | (no => IO[no]))
find a strongly-typed view.
find a strongly-typed view. will fail to compile if id(xxx) is not used prior in the source
find a strongly-typed view.
find a strongly-typed view. will fail to compile if id(xxx) is not used prior in the source
dynamic class for automatically setting event listeners.
dynamic class for automatically setting event listeners. For example
hook.onClick((v: View) => IO { perform work onClick })
, apply this to an
IO[View]
using >>=
dynamic class for automatically setting event listeners.
dynamic class for automatically setting event listeners. For example
hook0.onClick(IO { perform work onClick })
, apply this to an
IO[View]
using >>=
dynamic class for automatically setting event listeners.
dynamic class for automatically setting event listeners. For example
hookM.onScroll.onScrollStateChanged((rv: RecyclerView, state: Int) => IO { perform work onClick })
, apply this to an
IO[View]
using >>=
dynamic class for automatically setting event listeners.
dynamic class for automatically setting event listeners. For example
hookM0.onScroll.onScrollStateChanged(IO { perform work onClick })
, apply this to an
IO[View]
using >>=
K-combinator, perform side-effects on A and automatically return A
K-combinator, perform side-effects on A and automatically return A
create any android ViewGroup
that takes Context
as a single constructor parameter.
create any android ViewGroup
that takes Context
as a single constructor parameter.
additionally, provides type hints for the use of lp
and lpK
for constructing
LayoutParams
orientation checker, true if landscape
orientation checker, true if landscape
Set layout params for a view
lp(MATCH_PARENT, MATCH_PARENT)
Set layout params for a view
lp(MATCH_PARENT, MATCH_PARENT)
pull a context out of "thin air", checks for Activity, Fragment and WithContext
pull a context out of "thin air", checks for Activity, Fragment and WithContext
orientation checker, true if portrait
orientation checker, true if portrait
resolve a single theme attribute
resolve a single theme attribute
smallest width checker
smallest width checker
type-safe retrieval of system service objects.
type-safe retrieval of system service objects.
e.g. systemService[NotificationManager]
retrieve a set of styleable attributes
retrieve a set of styleable attributes
version checker, at least minVersion
=> true
version checker, at least minVersion
=> true
create any android object that takes Context
as a single constructor parameter
create any android object that takes Context
as a single constructor parameter