Inherits from NSObject
Declared in Bit6Message.h

Overview

A Bit6Message object represents a message sent or received by the user.

Properties

attachFileType

Gets the attachment type of the sender as a value of the Bit6MessageFileType enumeration.

@property (nonatomic, readonly) Bit6MessageFileType attachFileType

Declared In

Bit6Message.h

attachmentType

The remote url for the sender’s full attachment.

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

Declared In

Bit6Message.h

audioDuration

Gets the length of the audio file attached to the sender.

@property (nonatomic, readonly) double audioDuration

Discussion

Note: You should check if the sender has an audio file attached by using the Bit6Message.attachFileType property.

Declared In

Bit6Message.h

callDuration

Gets the length of the call. This property should be used only if self.type == Bit6MessageType_Call.

@property (nullable, nonatomic, readonly) NSNumber *callDuration

Declared In

Bit6Message.h

callStatus

Call status as a value of the Bit6MessageCallStatus enumeration. This property should be used only if self.type == Bit6MessageType_Call.

@property (nonatomic, readonly) Bit6MessageCallStatus callStatus

Declared In

Bit6Message.h

content

The text content of the sender.

@property (nullable, nonatomic, readonly, copy) NSString *content

Declared In

Bit6Message.h

conversation

The conversation the sender belongs to.

@property (nonatomic, readonly) Bit6Conversation *conversation

Declared In

Bit6Message.h

conversationAddress

The conversation address the sender belongs to.

@property (nullable, nonatomic, readonly) Bit6Address *conversationAddress

Declared In

Bit6Message.h

created

The creation timestamp of the sender.

@property (nonatomic, copy, readonly) NSNumber *created

Declared In

Bit6Message.h

identifier

Unique identifier for the message.

@property (nonatomic, readonly, copy) NSString *identifier

Declared In

Bit6Message.h

incoming

YES if this is an incoming message.

@property (nonatomic, readonly) BOOL incoming

Declared In

Bit6Message.h

isEmojiMessage

The message is a text message that only contains emoji characters (up to 3 emojis are allowed).

@property (nonatomic, readonly) BOOL isEmojiMessage

Declared In

Bit6Message.h

location

Location attached to the message if available, or kCLLocationCoordinate2DInvalid if not.

@property (nonatomic, readonly) CLLocationCoordinate2D location

Declared In

Bit6Message.h

other

Gets the other person address as a Bit6Address object.

@property (nullable, nonatomic, readonly, copy) Bit6Address *other

Declared In

Bit6Message.h

pathForFullAttachment

The path for the sender’s full attachment.

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

Declared In

Bit6Message.h

pathForThumbnailAttachment

The path for the sender’s full attachment.

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

Declared In

Bit6Message.h

remoteURLForFullAttachment

The remote url for the sender’s full attachment.

@property (nullable, nonatomic, readonly) NSURL *remoteURLForFullAttachment

Declared In

Bit6Message.h

remoteURLForThumbnailAttachment

The remote url for the sender’s thumbnail attachment.

@property (nullable, nonatomic, readonly) NSURL *remoteURLForThumbnailAttachment

Declared In

Bit6Message.h

status

Sender status as a value of the Bit6MessageStatus enumeration.

@property (nonatomic, readonly) Bit6MessageStatus status

Declared In

Bit6Message.h

statusForFullAttachment

The status for the sender’s full attachment as a value of the Bit6MessageAttachmentStatus enumeration.

@property (nonatomic, readonly) Bit6MessageAttachmentStatus statusForFullAttachment

Declared In

Bit6Message.h

statusForThumbnailAttachment

The status for the sender’s thumbnail attachment as a value of the Bit6MessageAttachmentStatus enumeration.

@property (nonatomic, readonly) Bit6MessageAttachmentStatus statusForThumbnailAttachment

Declared In

Bit6Message.h

type

Sender type as a value of the Bit6MessageType enumeration.

@property (nonatomic, readonly) Bit6MessageType type

Declared In

Bit6Message.h

updated

The last updated timestamp of the sender.

@property (nullable, nonatomic, copy, readonly) NSNumber *updated

Declared In

Bit6Message.h

Class Methods

typeForFlags:

Message type as a value of the Bit6MessageType enumeration for an specific set of flags.

+ (Bit6MessageType)typeForFlags:(NSNumber *)flags

Parameters

flags

message flags.

Return Value

the type of message.

Declared In

Bit6Message.h

Instance Methods

callHasChannel:

Determine if the call had the specific channel. This method should be used only if self.type == Bit6MessageType_Call.

- (BOOL)callHasChannel:(Bit6MessageCallChannel)channel

Parameters

channel

Channel to look for in the call.

Return Value

true if the call had the specific channel.

Declared In

Bit6Message.h

downloadAttachmentWithCompletionHandler:

Downloads the full attachment for the message.

- (void)downloadAttachmentWithCompletionHandler:(nullable void ( ^ ) ( NSURL *_Nullable location , NSURLResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

completionHandler

Block to call after the operation has been completed. The “error” value can be use to know if the file was downloaded and saved in cache.

Declared In

Bit6Message.h

downloadThumbnailWithCompletionHandler:

Downloads the attachment thumbnail for the message.

- (void)downloadThumbnailWithCompletionHandler:(nullable void ( ^ ) ( NSURL *_Nullable location , NSURLResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

completionHandler

Block to call after the operation has been completed. The “error” value can be use to know if the file was downloaded and saved in cache.

Declared In

Bit6Message.h

init

Unavailable init

- (instancetype)init

Return Value

a new instance of the class.

Declared In

Bit6Message.h