SHOW Signed
 

net.rim.blackberry.api.blackberrymessenger
Interface SessionSetupListener


public interface SessionSetupListener

A listener class that receives notification of events that occur during Session requests. SessionSetupListeners are passed into the Session.sendRequest() method and will receive events relevant to that request.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:
JDE 4.2.1

Method Summary
 Category: Signed  void sessionRequestAccepted(Session session)
          Indicates that a Session request has been accepted by a remote user.
 Category: Signed  void sessionRequestDelivered(Session session)
          Indicates that a Session request has been delivered to the remote application.
 Category: Signed  void sessionRequestFailed(Session session, int reason)
          Indicates that a Session request has failed.
 Category: Signed  void sessionRequestRefused(Session session)
          Indicates that a Session request has been refused by the remote user.
 

Method Detail

sessionRequestAccepted

public void sessionRequestAccepted(Session session)
Indicates that a Session request has been accepted by a remote user. The Session should be open and ready to use for communication with the remote application.
Parameters:
session - The Session that was accepted.
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

sessionRequestDelivered

public void sessionRequestDelivered(Session session)
Indicates that a Session request has been delivered to the remote application.
Parameters:
session - The Session whose request has been delivered.
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

sessionRequestFailed

public void sessionRequestFailed(Session session,
                                 int reason)
Indicates that a Session request has failed. This could be because the remote user does not have the correct application installed.
Parameters:
session - The Session whose request has failed.
reason - The reason for the failure.
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

sessionRequestRefused

public void sessionRequestRefused(Session session)
Indicates that a Session request has been refused by the remote user.
Parameters:
session - The Session whose request has been refused.
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.