danger.app
Class Registrar

java.lang.Object
  |
  +--danger.app.Registrar

public final class Registrar
extends java.lang.Object


Field Summary
static char kDebuggingWindowShortcut
           
static char kJumpToChooserShortcut
           
static char kShowNetStatShortcut
           
 
Method Summary
static void bringToForeground(Application app)
           
static void bringToForeground(Bundle bundle)
          Request that an app come to the foreground; suspend the currently active app if any
static boolean changeProviderPriority(java.lang.String serviceName, int priority)
           
static boolean chooserIsActive()
          Return whether the Chooser is the active application.
static void completeIPC(IPCIncoming inIPC)
           
static void completeIPCReturnToSender(IPCIncoming inIPC)
           
static Bundle currentBundle()
           
static void deregisterAllProviders()
          Removes all service providers registered by the running app
static void discardApp(Bundle bundle)
           
static ComponentVersion findComponentVersionByName(java.lang.String name)
           
static boolean getAppCanDiscard(Bundle bundle)
           
static int getAppRingPosition(Bundle bundle)
           
static java.util.Vector getChooserMenuApps()
           
static java.util.Vector getChooserRingApps()
           
static ComponentVersion[] getComponentVersionList()
           
static int getGalleryAppCount()
           
static Bundle[] getGalleryApps()
           
static Bundle getLauncherBundle()
           
static int getMaxGallerySlotIndex()
           
static int getMaxNumAllowedGalleryApps()
           
static int getMinGallerySlotIndex()
           
static Bundle getPhoneBundle()
           
static Bundle getRegistrationBundle()
           
static Bundle getSysAppBundle()
           
static void initializeSystemApp()
           
static boolean isAppBuiltin(Bundle bundle)
           
static boolean isAppChooser(Bundle bundle)
           
static boolean isAppGallery(Bundle bundle)
           
static boolean isAppInGallery(Bundle bundle)
           
static boolean isGalleryFull()
           
static void isSysAppReady()
           
static void listAllProviders()
           
static void moveChooserRingApp(Bundle newPosition)
           
static void moveChooserRingApp(Bundle app, int newIndex)
           
static void offerSystemUpgrade(IPCMessage msg)
           
static void prelaunchApps()
           
static void quitApps()
          Cause apps to quit -- simulator use only.
static boolean registerProvider(java.lang.String serviceName, Listener listener, int what)
           
static boolean registerURLSchemeHandler(java.lang.String inScheme)
           
static int sendMessage(java.lang.String serviceName, IPCMessage message, Event completeEvent)
           
static int sendMessageAllowConsolidate(java.lang.String serviceName, IPCMessage message, Event completeEvent)
           
static boolean serviceExists(java.lang.String serviceName)
           
static boolean showAppInChooserRing(Bundle bundle)
           
static void showChooser()
          Request that the Launcher come the foreground without changing the selection
static void showChooser(boolean selectDefaultApp)
          Request that the Launcher App Come to the foreground
static void showChooser(Bundle bundle)
          Request that the Launcher come to the foreground and select the given app.
static void showHintsWindow()
          Request that the Launcher show the Hints Window
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kJumpToChooserShortcut

public static final char kJumpToChooserShortcut

kShowNetStatShortcut

public static final char kShowNetStatShortcut

kDebuggingWindowShortcut

public static final char kDebuggingWindowShortcut
Method Detail

isAppInGallery

public static boolean isAppInGallery(Bundle bundle)

isAppBuiltin

public static boolean isAppBuiltin(Bundle bundle)

isAppGallery

public static boolean isAppGallery(Bundle bundle)

isAppChooser

public static boolean isAppChooser(Bundle bundle)

showAppInChooserRing

public static boolean showAppInChooserRing(Bundle bundle)

getAppRingPosition

public static int getAppRingPosition(Bundle bundle)

discardApp

public static void discardApp(Bundle bundle)

getAppCanDiscard

public static boolean getAppCanDiscard(Bundle bundle)

getGalleryAppCount

public static int getGalleryAppCount()

getMinGallerySlotIndex

public static int getMinGallerySlotIndex()

getMaxGallerySlotIndex

public static int getMaxGallerySlotIndex()

getMaxNumAllowedGalleryApps

public static int getMaxNumAllowedGalleryApps()

isGalleryFull

public static boolean isGalleryFull()

getGalleryApps

public static Bundle[] getGalleryApps()

moveChooserRingApp

public static void moveChooserRingApp(Bundle app,
                                      int newIndex)

getChooserRingApps

public static java.util.Vector getChooserRingApps()

moveChooserRingApp

public static void moveChooserRingApp(Bundle newPosition)

getChooserMenuApps

public static java.util.Vector getChooserMenuApps()

chooserIsActive

public static boolean chooserIsActive()
Return whether the Chooser is the active application. Returns true if the Chooser is the active application.

showChooser

public static void showChooser(boolean selectDefaultApp)
Request that the Launcher App Come to the foreground

showChooser

public static void showChooser()
Request that the Launcher come the foreground without changing the selection

showChooser

public static void showChooser(Bundle bundle)
Request that the Launcher come to the foreground and select the given app.

showHintsWindow

public static void showHintsWindow()
Request that the Launcher show the Hints Window

quitApps

public static void quitApps()
Cause apps to quit -- simulator use only. XXX SHOULD NOT BE PUBLIC

completeIPC

public static void completeIPC(IPCIncoming inIPC)

completeIPCReturnToSender

public static void completeIPCReturnToSender(IPCIncoming inIPC)

bringToForeground

public static void bringToForeground(Bundle bundle)
Request that an app come to the foreground; suspend the currently active app if any

bringToForeground

public static void bringToForeground(Application app)

currentBundle

public static Bundle currentBundle()

initializeSystemApp

public static void initializeSystemApp()

isSysAppReady

public static void isSysAppReady()

getLauncherBundle

public static Bundle getLauncherBundle()

getPhoneBundle

public static Bundle getPhoneBundle()

getRegistrationBundle

public static Bundle getRegistrationBundle()

prelaunchApps

public static void prelaunchApps()

getSysAppBundle

public static Bundle getSysAppBundle()

findComponentVersionByName

public static ComponentVersion findComponentVersionByName(java.lang.String name)

getComponentVersionList

public static ComponentVersion[] getComponentVersionList()

registerProvider

public static boolean registerProvider(java.lang.String serviceName,
                                       Listener listener,
                                       int what)

changeProviderPriority

public static boolean changeProviderPriority(java.lang.String serviceName,
                                             int priority)

deregisterAllProviders

public static void deregisterAllProviders()
Removes all service providers registered by the running app

listAllProviders

public static void listAllProviders()

registerURLSchemeHandler

public static boolean registerURLSchemeHandler(java.lang.String inScheme)

serviceExists

public static boolean serviceExists(java.lang.String serviceName)

sendMessage

public static int sendMessage(java.lang.String serviceName,
                              IPCMessage message,
                              Event completeEvent)

sendMessageAllowConsolidate

public static int sendMessageAllowConsolidate(java.lang.String serviceName,
                                              IPCMessage message,
                                              Event completeEvent)

offerSystemUpgrade

public static void offerSystemUpgrade(IPCMessage msg)


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