danger.audio
Class ToneClass

java.lang.Object
  |
  +--danger.audio.ToneClass

public class ToneClass
extends java.lang.Object

bits for Tone


Field Summary
static int ALL
          all bits on
static int BACKGROUND
          email
static int BACKGROUND_SYSTEM
          foreground/background but doesn't show up in pickers
static int CUSTOM
          imported
static int FOREGROUND
          rings and reminders
static int FOREGROUND_ON_PHONE
          ringtones need to play while phone is active
static int FOREGROUND_SYSTEM
          by default
static int HIDDEN
           
static int KEY
          key presses
static int NONE
           
static int ON_PHONE
          plays when on phone
static int SYSTEM
          system UI
static int UNMUTABLE
          plays even when system mute is in effect
 
Constructor Summary
ToneClass()
           
 
Method Summary
static int toVolumeClass(int klass)
          convert a ToneClass to a VolumeSelector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE

FOREGROUND

public static final int FOREGROUND
rings and reminders

BACKGROUND

public static final int BACKGROUND
email

SYSTEM

public static final int SYSTEM
system UI

CUSTOM

public static final int CUSTOM
imported

KEY

public static final int KEY
key presses

UNMUTABLE

public static final int UNMUTABLE
plays even when system mute is in effect

ON_PHONE

public static final int ON_PHONE
plays when on phone

BACKGROUND_SYSTEM

public static final int BACKGROUND_SYSTEM
foreground/background but doesn't show up in pickers

FOREGROUND_SYSTEM

public static final int FOREGROUND_SYSTEM
by default

FOREGROUND_ON_PHONE

public static final int FOREGROUND_ON_PHONE
ringtones need to play while phone is active

HIDDEN

public static final int HIDDEN

ALL

public static final int ALL
all bits on
Constructor Detail

ToneClass

public ToneClass()
Method Detail

toVolumeClass

public static int toVolumeClass(int klass)
convert a ToneClass to a VolumeSelector


Danger Confidential. Copyright © 2000-2003, Danger Inc.