TCHMedia Class Reference

Inherits from NSObject
Declared in TCHMedia.h

Overview

The media representation of a media information of a message in a conversation.

  sid

The server-assigned unique identifier for the media.

@property (nonatomic, readonly) NSString *sid

Discussion

The server-assigned unique identifier for the media.

Declared In

TCHMedia.h

  contentType

The content type of the media.

@property (nonatomic, readonly) NSString *contentType

Discussion

The content type of the media.

Declared In

TCHMedia.h

  category

The media category.

@property (nonatomic, readonly) TCHMediaCategory category

Discussion

The media category.

Declared In

TCHMedia.h

  filename

The file name of the media if present, nil otherwise.

@property (nonatomic, readonly, nullable) NSString *filename

Discussion

The file name of the media if present, nil otherwise.

Declared In

TCHMedia.h

  size

The size of the media in bytes.

@property (nonatomic, readonly) NSUInteger size

Discussion

The size of the media in bytes.

Declared In

TCHMedia.h

– getTemporaryContentUrlWithCompletion:

Returns a direct content URL for the media.

- (void)getTemporaryContentUrlWithCompletion:(TCHURLCompletion)completion

Parameters

completion

The completion block with a result and a temporary URL.

Discussion

Returns a direct content URL for the media.

This URL is impermanent, it will expire in several minutes and cannot be cached. If the URL becomes expired, you need to request a new one. Each call to this function produces a new temporary URL.

Declared In

TCHMedia.h