Trait/Object

org.scaloid.common

Helpers

Related Docs: object Helpers | package common

Permalink

trait Helpers extends AppHelpers with ContentHelpers with MediaHelpers with PreferenceHelpers with WidgetHelpers

Aggregate trait for helpers.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Helpers
  2. WidgetHelpers
  3. PreferenceHelpers
  4. MediaHelpers
  5. ContentHelpers
  6. AppHelpers
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def alarmSound: Uri

    Permalink
    Definition Classes
    MediaHelpers
    Annotations
    @inline()
  5. def alert(title: CharSequence, text: CharSequence, clickCallback: ⇒ Unit = {})(implicit context: Context): Unit

    Permalink

    Displays a simple alert dialog.

    Displays a simple alert dialog.

    Although this builder displays some UI element, this builder can be called from any thread, because the method show() handles threading internally.

    clickCallback

    This callback is run when the button is clicked. Does nothing by default.

    Definition Classes
    AppHelpers
    Annotations
    @inline()
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def broadcastReceiver(filterString: String)(onReceiveBody: ⇒ Any)(implicit ctx: Context, reg: Registerable): Unit

    Permalink

    When you register BroadcastReceiver with Context.registerReceiver() you have to unregister it to prevent memory leak.

    When you register BroadcastReceiver with Context.registerReceiver() you have to unregister it to prevent memory leak. Trait UnregisterReceiver handles these chores for you. All you need to do is append the trait to your class.

    class MyService extends SService with UnregisterReceiver {
    def func() {
    // ...
    registerReceiver(receiver, intentFilter)
    // Done! automatically unregistered at UnregisterReceiverService.onDestroy()
    }
    }
    Definition Classes
    ContentHelpers
  8. def broadcastReceiver(filter: IntentFilter)(onReceiveBody: (Context, Intent) ⇒ Any)(implicit ctx: Context, reg: Registerable): Unit

    Permalink

    When you register BroadcastReceiver with Context.registerReceiver() you have to unregister it to prevent memory leak.

    When you register BroadcastReceiver with Context.registerReceiver() you have to unregister it to prevent memory leak. Trait UnregisterReceiver handles these chores for you. All you need to do is append the trait to your class.

    class MyService extends SService with UnregisterReceiver {
    def func() {
    // ...
    registerReceiver(receiver, intentFilter)
    // Done! automatically unregistered at UnregisterReceiverService.onDestroy()
    }
    }
    Definition Classes
    ContentHelpers
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. implicit def defaultSharedPreferences(implicit context: Context): SharedPreferences

    Permalink

    Returns DefaultSharedPreferences object for given implicit context.

    Returns DefaultSharedPreferences object for given implicit context.

    Definition Classes
    PreferenceHelpers
    Annotations
    @inline()
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def longToast(message: CharSequence, gravity: Int = Gravity.BOTTOM, view: View = null)(implicit context: Context): Unit

    Permalink

    Displays a toast message for a longer time.

    Displays a toast message for a longer time. This method can be called from any threads.

    Definition Classes
    WidgetHelpers
    Annotations
    @inline()
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def notificationSound: Uri

    Permalink
    Definition Classes
    MediaHelpers
    Annotations
    @inline()
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def openUri(uri: Uri)(implicit context: Context): Unit

    Permalink

    Launches a new activity for a give uri.

    Launches a new activity for a give uri. For example, opens a web browser for http protocols.

    openUri("http://scaloid.org")
    Definition Classes
    AppHelpers
    Annotations
    @inline()
  23. def pendingActivity[T](implicit context: Context, ct: ClassTag[T]): PendingIntent

    Permalink
    Definition Classes
    AppHelpers
    Annotations
    @inline()
  24. def pendingActivity(intent: Intent, flags: Int = 0)(implicit context: Context): PendingIntent

    Permalink
    Definition Classes
    AppHelpers
    Annotations
    @inline()
  25. def pendingService[T](implicit context: Context, ct: ClassTag[T]): PendingIntent

    Permalink
    Definition Classes
    AppHelpers
    Annotations
    @inline()
  26. def pendingService(intent: Intent, flags: Int = 0)(implicit context: Context): PendingIntent

    Permalink
    Definition Classes
    AppHelpers
    Annotations
    @inline()
  27. def play(uri: Uri = notificationSound)(implicit context: Context): Unit

    Permalink

    Plays a sound from a given Uri.

    Plays a sound from a given Uri.

    play("content://media/internal/audio/media/50")
    Definition Classes
    MediaHelpers
  28. macro def preferenceVar[T](defaultVal: T): PreferenceVar[T]

    Permalink
    Definition Classes
    PreferenceHelpers
  29. def preferenceVar[T](key: String, defaultVal: T): PreferenceVar[T]

    Permalink
    Definition Classes
    PreferenceHelpers
    Annotations
    @inline()
  30. def ringtoneSound: Uri

    Permalink
    Definition Classes
    MediaHelpers
    Annotations
    @inline()
  31. def spinnerDialog(title: CharSequence, message: CharSequence)(implicit context: Context): Future[ProgressDialog]

    Permalink

    Displays a dialog with spinner icon.

    Displays a dialog with spinner icon. This method can be called from any threads.

    Definition Classes
    WidgetHelpers
    Annotations
    @inline()
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. def toast(message: CharSequence, gravity: Int = Gravity.BOTTOM, view: View = null)(implicit context: Context): Unit

    Permalink

    Displays a toast message.

    Displays a toast message. This method can be called from any threads.

    Definition Classes
    WidgetHelpers
    Annotations
    @inline()
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from WidgetHelpers

Inherited from PreferenceHelpers

Inherited from MediaHelpers

Inherited from ContentHelpers

Inherited from AppHelpers

Inherited from AnyRef

Inherited from Any

Ungrouped