Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
PTDiffusionSessionLockScope Class Reference

Scope specifying when a session lock should be releaed. More...

#include <PTDiffusionSessionLockScope.h>

Inheritance diagram for PTDiffusionSessionLockScope:
PTDiffusionEnumeration

Instance Methods

(BOOL) - isEqualToSessionLockScope:
Instance Methods inherited from PTDiffusionEnumeration
(BOOL) - isEqualToEnumeration:

Class Methods

(instancetype) + unlockOnSessionLoss
(instancetype) + unlockOnConnectionLoss
Class Methods inherited from PTDiffusionEnumeration
(NSSet< PTDiffusionEnumeration * > *) + elements

Detailed Description

Scope specifying when a session lock should be releaed.

See also
- lockWithName:scope:completionHandler: (PTDiffusionSession)
Since
6.3

Method Documentation

◆ isEqualToSessionLockScope:

- (BOOL) isEqualToSessionLockScope: (nullable PTDiffusionSessionLockScope *) sessionLockScope

Compares the receiver to the given session lock scope.

Parameters
sessionLockScopeThe session lock scope object with which to compare the receiver.
Returns
YES if the session lock scope is equal to the receiver, otherwise NO.
Since
6.3

◆ unlockOnConnectionLoss

+ (instancetype) unlockOnConnectionLoss

The lock will be released when the acquiring session is closed.

Returns
Instance indicating that the lock will be released when the acquiring session is closed.
Since
6.3

◆ unlockOnSessionLoss

+ (instancetype) unlockOnSessionLoss

The lock will be released when the acquiring session loses its current connection to the server.

Returns
Instance indicating that the lock will be released when the acquiring session loses its current connection to the server.
Since
6.3