Handles sessions in WIRemoting framework. More...
#import <RMSession.h>
Public Member Functions | |
(id) | - initWithAuthenticator:call: |
Initiate a session with an authentication delegate. | |
(void) | - authenticate |
Authenticate the session. | |
(BOOL) | - call:arguments: |
Call a method. | |
(BOOL) | - call:arguments:delegate: |
Call a remote method with a temporary delegate. | |
(void) | - close |
Close a session. | |
(void) | - addDelegate: |
Add a new delegate. | |
(void) | - removeDelegate: |
Remove a delegate. | |
Protected Attributes | |
id< RMAuthenticator > | authenticator |
NSMutableArray * | delegateChain |
Properties | |
RMCall * | call |
The call object to handle session calls. | |
id | semaphore |
Semaphore for locking. | |
BOOL | authenticated |
Return the state whether the session is authenticated. |
Handles sessions in WIRemoting framework.
Definition at line 62 of file RMSession.h.
- (id) initWithAuthenticator: | (id<RMAuthenticator>) | authenticator | ||
call: | (RMCall*) | call | ||
Initiate a session with an authentication delegate.
authenticator | An authentication service provider. | |
call | A call object to handle session calls. |
Definition at line 18 of file RMSession.m.
- (BOOL) call: | (NSString*) | method | ||
arguments: | (NSDictionary*) | arguments | ||
Call a method.
method | The method name. | |
arguments | Method arguments. |
Definition at line 132 of file RMSession.m.
- (BOOL) call: | (NSString*) | method | ||
arguments: | (NSDictionary*) | arguments | ||
delegate: | (id) | delegate | ||
Call a remote method with a temporary delegate.
method | The method name. | |
arguments | The method arguments. | |
delegate | a delegate |
Definition at line 140 of file RMSession.m.
- (void) addDelegate: | (id<RMResultDelegate>) | delegate |
- (void) removeDelegate: | (id<RMResultDelegate>) | delegate |
- (BOOL) authenticated [read, assign] |
Return the state whether the session is authenticated.
Definition at line 66 of file RMSession.h.