Inherits from QBCEntity : NSObject
Conforms to NSCoding
NSCopying
Declared in QBCBlob.h

Overview

QBCBlob class interface. This class represents File in Content module. Limitations: max size of file is 5368709120 bytes (5 GB).

Tasks

Properties

UID

@property (nonatomic, copy, nullable) NSString *UID
Discussion

File unique identifier.

Declared In

QBCBlob.h

blobObjectAccess

@property (nonatomic, strong, nullable) QBCBlobObjectAccess *blobObjectAccess
Discussion

An instance of BlobObjectAccess.

Declared In

QBCBlob.h

completedAt

@property (nonatomic, strong, nullable) NSDate *completedAt
Discussion

Date when the file upload has been completed.

Declared In

QBCBlob.h

contentType

@property (nonatomic, copy, nullable) NSString *contentType
Discussion

Content type in mime format.

Declared In

QBCBlob.h

isNew

@property (nonatomic, assign) BOOL isNew
Discussion

Set as YES if you want to update blob’s file.

Declared In

QBCBlob.h

isPublic

@property (nonatomic, assign) BOOL isPublic
Discussion

File’s visibility.

Declared In

QBCBlob.h

lastReadAccessTs

@property (nonatomic, strong, nullable) NSDate *lastReadAccessTs
Discussion

Last read file time.

Declared In

QBCBlob.h

name

@property (nonatomic, copy, nullable) NSString *name
Discussion

File name.

Declared In

QBCBlob.h

size

@property (nonatomic, assign) NSUInteger size
Discussion

The size of file in bytes, readonly

Declared In

QBCBlob.h

status

@property (nonatomic, assign) QBCBlobStatus status
Discussion

Status of the File.

Declared In

QBCBlob.h

tags

@property (nonatomic, copy, nullable) NSString *tags
Discussion

Coma separated string with file’s tags.

Declared In

QBCBlob.h

Class Methods

blob

+ (QBCBlob *)blob
Discussion

Create new blob.

Return Value

New QBCBlob instance

Declared In

QBCBlob.h

privateUrlForFileUID:

+ (nullable NSString *)privateUrlForFileUID:(NSString *)fileUID
Discussion

Get file’s private url (available only with QuickBlox token), if blob is private.

Parameters

fileUID

File unique identifier

Return Value

Private url to file

Declared In

QBCBlob.h

publicUrlForFileUID:

+ (nullable NSString *)publicUrlForFileUID:(NSString *)fileUID
Discussion

Get file’s public url (available within Internet), if blob is public.

Parameters

fileUID

File unique identifier

Return Value

Public url to file

Declared In

QBCBlob.h

Instance Methods

privateUrl

- (nullable NSString *)privateUrl
Discussion

Get file’s private url (available only with QuickBlox token), if blob is private.

Return Value

Private url for file

Declared In

QBCBlob.h

publicUrl

- (nullable NSString *)publicUrl
Discussion

Get file’s public url (available within Internet), if blob is public.

Return Value

Public url for file

Declared In

QBCBlob.h