TCHMedia Class Reference
Inherits from | NSObject |
---|---|
Declared in | TCHMedia.h |
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:
Get a direct content URL for the media attachment.
- (TCHCancellationToken *)getTemporaryContentUrlWithCompletion:(TCHURLCompletion)completion
Parameters
completion |
The completion block with a result and a temporary URL for. |
---|
Return Value
The cancellation token to cancel the network request.
Discussion
Get a direct content URL for the media attachment.
The returned URL is impermanent, it will expire in several minutes and thus cannot be cached. If the URL expires, you will need to request a new one. Each call to this function produces a new temporary URL.
Declared In
TCHMedia.h