TTPresenceData Class Reference

Inherits from NSObject
Declared in TTPresenceData.h

Overview

TTPresenceData describes a user’s status in the system - mostly if he is online or not, while providing the user’s status as well.

  userToken

Token of TTUser to which of which presence data is detailed in this insatnce.

@property (nullable, nonatomic, strong) NSString *userToken

Declared In

TTPresenceData.h

  type

If type equals ‘available’, the available property will be YES. Any other value switches it to ‘NO’.

@property (nullable, nonatomic, strong) NSString *type

Declared In

TTPresenceData.h

  status

User’s status message tagline.

@property (nullable, nonatomic, strong) NSString *status

Declared In

TTPresenceData.h

  available

YES when user is available, NO otherwise.

@property (nonatomic, assign) BOOL available

Declared In

TTPresenceData.h

  typeChangedBlock

Block that is called when Presence data type is changed

@property (nullable, nonatomic, copy) void ( ^ ) ( NSString *_Nullable ) ( "Use TTPresenceDataObserver instead." ) typeChangedBlock

Declared In

TTPresenceData.h

  statusChangedBlock

Block that is called when Presence data status is changed

@property (nullable, nonatomic, copy) void ( ^ ) ( NSString *_Nullable ) ( "Use TTPresenceDataObserver instead." ) statusChangedBlock

Declared In

TTPresenceData.h

– addObserver:

Add an observer to track presence and user status changes.

- (void)addObserver:(id<TTPresenceDataObserver> _Nonnull)observer

Declared In

TTPresenceData.h

– removeObserver:

Remove an observer.

- (void)removeObserver:(id<TTPresenceDataObserver> _Nonnull)observer

Declared In

TTPresenceData.h