blackberry.bbm.platform.io.IncomingJoinRequest

A request to join received on the host's side.

Supported Platform(s)

- BlackBerry OS 5.0+

View Supported Platform Table

APIOS 5.0OS 6.0OS 7.0PlayBookRipple
accept Y Y Y   
decline Y Y Y   
cookie Y Y Y   
peer Y Y Y   

Configuration Document Settings

To use all of the API described for this object, you must ensure the following settings are in your configuration document:


You must declare the feature element(s) below in your configuration document:

Feature IDOS 5.0OS 6.0OS 7.0PlayBookRipple
<feature id="blackberry.bbm.platform" /> Y Y Y   

Permission Elements (PlayBook Only)
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.

API Summary


Functions


Properties

Properties inherited from class blackberry.bbm.platform.io.JoinRequest:
id status

accept


void accept([cookie: String])

Supported Platform(s)

 - BlackBerry OS 5.0+

Description

Accepts the join request from a peer. This can be called from the host's side.

onHostAccepted supplied to joinHost will be invoked on the peer's side.



Parameter Type Description
cookie String
Optional
A custom parameter provided by the third party application. This parameter will be sent to the joining peer.

Throws Description
IllegalArgumentException If cookie is longer than 128 characters.

decline


void decline()

Supported Platform(s)

 - BlackBerry OS 5.0+

Description

Declines the join request from a peer. This can be called from the host's side.

onHostDeclined supplied to joinHost will be invoked on the peer's side, with the reason "declinedbyhost".


Properties:


Property Type Description Supported Platform(s)
cookie String The cookie specified by the requesting peer. undefined if no cookie was specified.
 - BlackBerry OS 5.0+
peer blackberry.bbm.platform.users.BBMPlatformUser The user who is requesting to join.
 - BlackBerry OS 5.0+

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 13:31:18 GMT-0500 (EST)