Diffusion Apple API  6.3.3
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Functions Variables Properties Pages
Class Methods | Properties | Instance Methods | List of all members
PTDiffusionSessionLockAttempt Class Reference

Introduction

A handle to a session lock request.

Instances of this object may be used to cancel the session lock attempt as well as to query the lock instance once acquired.

Since
6.3
Inheritance diagram for PTDiffusionSessionLockAttempt:
<PTDiffusionCancellable>

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Properties

PTDiffusionSessionLocklock
 

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(BOOL) - isEqualToSessionLockAttempt:
 
- Instance Methods inherited from <PTDiffusionCancellable>
(BOOL) - cancel
 

Method Documentation

- (BOOL) isEqualToSessionLockAttempt: (nullable PTDiffusionSessionLockAttempt *)  sessionLockAttempt

Compares the receiver to the given session lock attempt.

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

Property Documentation

- (PTDiffusionSessionLock*) lock
readatomicassign

The acquired lock, if the attempt was successful. Until a response has come back from the server, this property will be nil. It will remain nil if that response indicates that the session lock attempt failed.

Since
6.3