org.scaloid.common

Helpers

object Helpers extends Helpers

Aggregate object for helpers.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Helpers
  2. Helpers
  3. WidgetHelpers
  4. PreferenceHelpers
  5. MediaHelpers
  6. ContentHelpers
  7. AppHelpers
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def alarmSound: Uri

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

    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()
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def broadcastReceiver(filter: IntentFilter)(onReceiveBody: (Context, Intent) ⇒ Any)(implicit ctx: Context, reg: Registerable): Unit

    When you register BroadcastReceiver with Context.

    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
  10. def clone(): AnyRef

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

    Returns DefaultSharedPreferences object for given implicit context.

    Returns DefaultSharedPreferences object for given implicit context.

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

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

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

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

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

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

    Definition Classes
    Any
  18. def longToast(message: CharSequence)(implicit context: Context): Unit

    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()
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def notificationSound: Uri

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

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

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

    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()
  24. def pendingActivity[T](implicit context: Context, ct: ClassTag[T]): PendingIntent

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

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

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

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

    Plays a sound from a given Uri.

    Plays a sound from a given Uri.

    play("content://media/internal/audio/media/50")
    Definition Classes
    MediaHelpers
  29. def ringtoneSound: Uri

    Definition Classes
    MediaHelpers
    Annotations
    @inline()
  30. def spinnerDialog(title: String, message: String)(implicit context: Context): ProgressDialog

    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()
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def toast(message: CharSequence)(implicit context: Context): Unit

    Displays a toast message.

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Helpers

Inherited from WidgetHelpers

Inherited from PreferenceHelpers

Inherited from MediaHelpers

Inherited from ContentHelpers

Inherited from AppHelpers

Inherited from AnyRef

Inherited from Any

Ungrouped