net.rim.blackberry.api.behavior
Class BehaviorGlobalEvent

java.lang.Object
  extended by net.rim.blackberry.api.behavior.BehaviorGlobalEvent

public class BehaviorGlobalEvent
extends Object

An event that is broadcasted for behavior related events such as changes in behaviors.

See Also:
net.rim.blackberry.api.accessory.AccessoryManager}, net.rim.device.api.system.GlobalEventListener}, net.rim.device.api.system.Application#addGlobalEventListener(net.rim.device.api.system.GlobalEventListener)}, net.rim.device.api.system.ApplicationManager#postGlobalEvent(int, long, int, int, Object, Object)}
Since:
BlackBerry API 7.0.0

Field Summary
static int EVENT_REASON_CHANGE_FROM_BEHAVIOR
          Indicates that the current behavior is changing.
static int EVENT_REASON_CHANGE_TO_BEHAVIOR
          Indicates that the behavior has been changed.
static long GLOBAL_EVENT_GUID
          The guid to listen for if an application is interested in Behavior events.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

GLOBAL_EVENT_GUID

public static final long GLOBAL_EVENT_GUID
The guid to listen for if an application is interested in Behavior events.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

EVENT_REASON_CHANGE_TO_BEHAVIOR

public static final int EVENT_REASON_CHANGE_TO_BEHAVIOR
Indicates that the behavior has been changed.

In this case, applications could have been started.

This is placed in data0 of the event broadcast.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

EVENT_REASON_CHANGE_FROM_BEHAVIOR

public static final int EVENT_REASON_CHANGE_FROM_BEHAVIOR
Indicates that the current behavior is changing.

In this case, applications that were started because of BehaviorGlobalEvent.EVENT_REASON_CHANGE_TO_BEHAVIOR could choose to close.

This is placed in data0 of the event broadcast.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal