BlackBerry device accessory commands
Use peripheral commands to generate BlackBerry® device peripheral events.
Action |
Peripheral command |
Parameter |
|---|---|---|
Set the charge level of the battery. |
BatteryLevel (int level) |
level: Type the charge level of the battery. |
Set battery charging on or off. |
BatteryCharge (bool charging) |
charging: Type true to simulate battery charging. Set this parameter to false to simulate the battery not charging. |
Connect or disconnect the external headset. |
HeadsetConnection (bool connected) |
connected: Type true to simulate a connection to the external headset. If you type false, a connection to the external headset is not simulated. |
Hang up a remote phone. |
RemoteCallDisconnection (string number) |
number: Type the phone number to disconnect from. |
Press or release the button on the external headset. |
HeadsetClick (bool pressed) |
pressed - When this parameter is set to true, the button appears pressed; when it is set to false, the button does not appear pressed. |
Holster (bool holstered) |
holstered - When this parameter is set to true, the BlackBerry device is in the holster; when it is set to false, the BlackBerry device is not in the holster. | |
Insert or remove the SIM card. |
SimInsertion (bool inserted) |
inserted - When this parameter is set to true, the SIM card is inserted; when it is set to false, the SIM card is not inserted. |
Parent topic: Use BlackBerry Smartphone Simulator controller commands