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:
BlackBerry API 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

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.
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:
BlackBerry API 4.2.1

sessionRequestDelivered

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.
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:
BlackBerry API 4.2.1

sessionRequestFailed

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.
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:
BlackBerry API 4.2.1

sessionRequestRefused

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.
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:
BlackBerry API 4.2.1





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.