Package

iota

Permalink

package iota

Linear Supertypes
AllComponents, LayoutCombinators, ViewCombinators, 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. Configurations
  6. Themes
  7. Contexts
  8. TernaryOps
  9. Views
  10. IdMacros
  11. Single
  12. AutoK
  13. Combinators
  14. AnyRef
  15. 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. 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 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. macro def id[A <: View](id: Int): Kestrel[A]

    Permalink
    Definition Classes
    ViewCombinators
  10. 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
  11. 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
  12. 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
  13. def landscape(implicit c: Context): Boolean

    Permalink

    orientation checker, true if landscape

    orientation checker, true if landscape

    Definition Classes
    Configurations
    Annotations
    @inline()
  14. 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( ... )
  15. def lpK[V <: View, A, B](args: Any*)(k: (A) ⇒ B): Kestrel[V]

    Permalink
    Definition Classes
    LayoutCombinators
    Annotations
    @compileTimeOnly( ... )
  16. 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()
  17. implicit macro def materializeActivity: Activity

    Permalink
    Definition Classes
    Contexts
  18. 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
  19. implicit macro def materializeIdType: ViewIdType[Any]

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

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

    Permalink
    Definition Classes
    Contexts
  22. 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
  23. def portrait(implicit c: Context): Boolean

    Permalink

    orientation checker, true if portrait

    orientation checker, true if portrait

    Definition Classes
    Configurations
    Annotations
    @inline()
  24. 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
  25. 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
  26. 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
  27. package std

    Permalink
  28. 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
  29. def sw(widthPx: Int)(implicit c: Context): Boolean

    Permalink

    smallest width checker

    smallest width checker

    Definition Classes
    Configurations
    Annotations
    @inline()
  30. 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()
  31. implicit val telephony system service: SystemService[TelephonyManager]

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

    Permalink

    version checker, at least minVersion => true

    version checker, at least minVersion => true

    Definition Classes
    Configurations
    Annotations
    @inline()
  33. 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 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