Package

iota

Permalink

package iota

Linear Supertypes
AllComponents, LayoutCombinators, ViewCombinators, FutureCombinators, Configurations, Themes, Contexts, TernaryOps, Views, IdMacros, Single, AutoK, Combinators, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. iota
  2. AllComponents
  3. LayoutCombinators
  4. ViewCombinators
  5. FutureCombinators
  6. Configurations
  7. Themes
  8. Contexts
  9. TernaryOps
  10. Views
  11. IdMacros
  12. Single
  13. AutoK
  14. Combinators
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait HasActivity extends AnyRef

    Permalink

    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

  2. trait HasContext extends AnyRef

    Permalink

    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

  3. final class IO[+A] extends AnyRef

    Permalink

    side-effect tracker.

    side-effect tracker. call perform to execute the side-effects within

  4. implicit final class IOKleisli[-A, +B] extends AnyVal

    Permalink
  5. type Kestrel[A] = (A) ⇒ IO[A]

    Permalink
  6. implicit final class Metrics extends AnyVal

    Permalink
  7. final case class SystemService[T](name: String) extends AnyVal with Product with Serializable

    Permalink

    Annotations
    @implicitNotFound( ... )
  8. sealed trait Ternary[A] extends AnyRef

    Permalink
  9. case class TernaryCondition[A] extends Ternary[A] with Product with Serializable

    Permalink
  10. implicit final class ViewFinder extends AnyVal

    Permalink
  11. case class ViewIdType[+A]()(implicit evidence$1: ClassTag[A]) extends Product with Serializable

    Permalink
    Annotations
    @implicitNotFound( ... )
  12. implicit final class WithTernaryOp extends AnyVal

    Permalink
  13. class cHelper[A <: ViewGroup] extends AnyRef

    Permalink

    type inference currying helper for c

    type inference currying helper for c

    Definition Classes
    Views
  14. class single0Helper[A] extends Dynamic

    Permalink
    Definition Classes
    Single
  15. class singleHelper[A] extends Dynamic

    Permalink
    Definition Classes
    Single

Value Members

  1. object IO

    Permalink
  2. object Id extends Dynamic

    Permalink

  3. def animate[A <: View, B](animation: (ViewPropertyAnimator) ⇒ B, listener: Option[AnimatorListener] = None): (A) ⇒ IO[Future[A]]

    Permalink
    Definition Classes
    ViewCombinators
  4. def c[A <: ViewGroup]: cHelper[A]

    Permalink

    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

    Definition Classes
    Views
  5. def condK[A](ternary: Ternary[A]): Kestrel[A]

    Permalink

    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]))

    Definition Classes
    TernaryOps
  6. def defer[A](f: Kestrel[A])(implicit ec: ExecutionContext): (Future[A]) ⇒ IO[Future[A]]

    Permalink

    K-combinators cannot be applied directly to IO[Future[A]] using >>=, wrapping them in defer() makes this possible.

    K-combinators cannot be applied directly to IO[Future[A]] using >>=, wrapping them in defer() makes this possible.

    Definition Classes
    FutureCombinators
  7. def deferF[A](f: (A) ⇒ IO[Future[A]])(implicit ec: ExecutionContext): (Future[A]) ⇒ IO[Future[A]]

    Permalink

    Any subsequent asynchronous operations that need to run (>>=) after an IO[Future[A]] should be wrapped in deferF() to keep the proper IO[Future[A]] type.

    Any subsequent asynchronous operations that need to run (>>=) after an IO[Future[A]] should be wrapped in deferF() to keep the proper IO[Future[A]] type.

    Definition Classes
    FutureCombinators
  8. object hook extends Dynamic

    Permalink

    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 >>=

    Definition Classes
    ViewCombinators
  9. object hook0 extends Dynamic

    Permalink

    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 >>=

    Definition Classes
    ViewCombinators
  10. object hookM extends Dynamic

    Permalink

    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 >>=

    Definition Classes
    ViewCombinators
  11. object hookM0 extends Dynamic

    Permalink

    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 >>=

    Definition Classes
    ViewCombinators
  12. macro def id[A <: View](id: Int): Kestrel[A]

    Permalink
    Definition Classes
    ViewCombinators
  13. object k extends Dynamic

    Permalink

    K-combinator generator, use with any IO container to generate a kestrel automatically, e.g.

    K-combinator generator, use with any IO container to generate a kestrel automatically, e.g. w[TextView] >>= k.hint("Hint") turns into: w[TextView] >>= kestrel(_.setHint("Hint"))

    Another example: IO(new StringBuilder) >>= k.append("Foo") turns into: IO(new StringBuilder) >>= kestrel(_.append("Foo"))

    Rules for resolution of the containing object's method are: setOnNAMEListener, addOnNAMEListener, setNAMEListener, addNAMEListener, setNAME, NAME

    Definition Classes
    AutoK
  14. def kestrel[A, B](f: (A) ⇒ B): Kestrel[A]

    Permalink

    K-combinator, perform side-effects on A and automatically return A

    K-combinator, perform side-effects on A and automatically return A

    Definition Classes
    Combinators
  15. macro def l[A <: ViewGroup](vs: IO[_ <: View]*)(implicit ctx: Context): IO[A]

    Permalink

    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

    Definition Classes
    Views
  16. final def landscape(implicit c: Context): Boolean

    Permalink

    orientation checker, true if landscape

    orientation checker, true if landscape

    Definition Classes
    Configurations
    Annotations
    @inline()
  17. final def lp[V <: View](args: Any*): Kestrel[V]

    Permalink

    Set layout params for a view lp(MATCH_PARENT, MATCH_PARENT)

    Set layout params for a view lp(MATCH_PARENT, MATCH_PARENT)

    Definition Classes
    LayoutCombinators
    Annotations
    @compileTimeOnly( ... )
  18. final def lpK[V <: View, A, B](args: Any*)(k: (A) ⇒ B): Kestrel[V]

    Permalink
    Definition Classes
    LayoutCombinators
    Annotations
    @compileTimeOnly( ... )
  19. final def margins(left: Int = 0, top: Int = 0, right: Int = 0, bottom: Int = 0, all: Int = 1): (MarginLayoutParams) ⇒ Unit

    Permalink
    Definition Classes
    LayoutCombinators
    Annotations
    @inline()
  20. implicit macro def materializeActivity: Activity

    Permalink
    Definition Classes
    Contexts
  21. implicit macro def materializeContext: Context

    Permalink

    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

    Definition Classes
    Contexts
  22. implicit macro def materializeIdType: ViewIdType[Any]

    Permalink
    Definition Classes
    IdMacros
  23. implicit macro def materializeSystemService[T]: SystemService[T]

    Permalink
    Definition Classes
    Contexts
  24. implicit val nsd system service: SystemService[NsdManager]

    Permalink
    Definition Classes
    Contexts
  25. def padding[A <: View](left: Int = 0, top: Int = 0, right: Int = 0, bottom: Int = 0, all: Int = 1): Kestrel[A]

    Permalink
    Definition Classes
    ViewCombinators
  26. final def portrait(implicit c: Context): Boolean

    Permalink

    orientation checker, true if portrait

    orientation checker, true if portrait

    Definition Classes
    Configurations
    Annotations
    @inline()
  27. def resolveAttr[A](attr: Int, f: (TypedValue) ⇒ A)(implicit ctx: Context): A

    Permalink

    resolve a single theme attribute

    resolve a single theme attribute

    Definition Classes
    Themes
  28. def single[A]: singleHelper[A]

    Permalink

    Constructs a single instance of a given abstract class or interface, can optionally specify the method name example usage: view.setOnClickListener(single[View.OnClickListener] { v: View => Toast.makeText(view.getContext, view.getId + " was clicked", Toast.LENGTH_SHORT).show() })

    Constructs a single instance of a given abstract class or interface, can optionally specify the method name example usage: view.setOnClickListener(single[View.OnClickListener] { v: View => Toast.makeText(view.getContext, view.getId + " was clicked", Toast.LENGTH_SHORT).show() })

    this version, single, requires all input parameters to be specified and handled

    Definition Classes
    Single
  29. def single0[A]: single0Helper[A]

    Permalink

    Constructs a single instance of a given abstract class or interface, can optionally specify the method name if multiple methods need implementation, only the specified method will be implemented, and others will have default, 0, implementations created

    Constructs a single instance of a given abstract class or interface, can optionally specify the method name if multiple methods need implementation, only the specified method will be implemented, and others will have default, 0, implementations created

    example usage: view.animate().x(100).setListener( single0[AnimatorListener].onAnimationEnd(view.setVisibility(View.GONE)))

    this version, single0, ignores all input parameters of the interface

    Definition Classes
    Single
  30. package std

    Permalink

  31. def styleableAttrs[A](styleable: Array[Int], f: (TypedArray) ⇒ A)(implicit context: Context): A

    Permalink

    retrieve a set of styleable attributes

    retrieve a set of styleable attributes

    Definition Classes
    Themes
  32. final def sw(widthPx: Int)(implicit c: Context): Boolean

    Permalink

    smallest width checker

    smallest width checker

    Definition Classes
    Configurations
    Annotations
    @inline()
  33. final def systemService[T](implicit s: SystemService[T], context: Context): T

    Permalink

    type-safe retrieval of system service objects.

    type-safe retrieval of system service objects. e.g. systemService[NotificationManager]

    Definition Classes
    Contexts
    Annotations
    @inline()
  34. implicit val telephony system service: SystemService[TelephonyManager]

    Permalink
    Definition Classes
    Contexts
  35. final def v(minVersion: Int): Boolean

    Permalink

    version checker, at least minVersion => true

    version checker, at least minVersion => true

    Definition Classes
    Configurations
    Annotations
    @inline()
  36. macro def w[A](implicit ctx: Context): IO[A]

    Permalink

    create any android object that takes Context as a single constructor parameter

    create any android object that takes Context as a single constructor parameter

    Definition Classes
    Views

Deprecated Value Members

  1. def findView[A <: View](id: Int)(implicit arg0: ViewIdType[A], arg1: ClassTag[A], activity: Activity): A

    Permalink

    find a strongly-typed view.

    find a strongly-typed view. will fail to compile if id(xxx) is not used prior in the source

    Definition Classes
    Contexts
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.2) Use the view holder pattern for better compile-time safety

  2. def findViewOption[A <: View](id: Int)(implicit arg0: ViewIdType[A], arg1: ClassTag[A], activity: Activity): Option[A]

    Permalink

    find a strongly-typed view.

    find a strongly-typed view. will fail to compile if id(xxx) is not used prior in the source

    Definition Classes
    Contexts
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.2) Use the view holder pattern for better compile-time safety

Inherited from AllComponents

Inherited from LayoutCombinators

Inherited from ViewCombinators

Inherited from FutureCombinators

Inherited from Configurations

Inherited from Themes

Inherited from Contexts

Inherited from TernaryOps

Inherited from Views

Inherited from IdMacros

Inherited from Single

Inherited from AutoK

Inherited from Combinators

Inherited from AnyRef

Inherited from Any

Ungrouped