Inherits from Bit6Message : NSObject
Declared in Bit6OutgoingMessage.h

Overview

A Bit6OutgoingMessage object represents a message that will be sent by the user.

Properties

audioFilePath

Path of the attached audio file, if available.

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

Declared In

Bit6OutgoingMessage.h

content

Text content of the message.

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

Declared In

Bit6OutgoingMessage.h

destination

The Bit6Address object to reference the message’s destination.

@property (nonnull, nonatomic, strong) Bit6Address *destination

Declared In

Bit6OutgoingMessage.h

image

Image to send as an attachment.

@property (nullable, nonatomic, strong) UIImage *image

Declared In

Bit6OutgoingMessage.h

location

Location to send with the message.

@property (nonatomic) CLLocationCoordinate2D location

Declared In

Bit6OutgoingMessage.h

videoCropEnd

Specifies the end of the time range, in seconds, to be sent from the video.

@property (nullable, nonatomic, strong) NSNumber *videoCropEnd

Declared In

Bit6OutgoingMessage.h

videoCropStart

Specifies the beginning of the time range, in seconds, to be sent from the video.

@property (nullable, nonatomic, strong) NSNumber *videoCropStart

Declared In

Bit6OutgoingMessage.h

videoURL

URL path to the video to be sent as an attachment.

@property (nullable, nonatomic, strong) NSURL *videoURL

Discussion

Note: It supports the following URL paths: file:// and assets-library://

Declared In

Bit6OutgoingMessage.h

Class Methods

outgoingCopyOfMessage:

Creates a copy of a sent message. This copy has a different identifier and it’s ready to be forwarded.

+ (nonnull Bit6OutgoingMessage *)outgoingCopyOfMessage:(nonnull Bit6Message *)msg

Parameters

msg

message to be copied

Return Value

copy of the message

Declared In

Bit6OutgoingMessage.h

Instance Methods

initWithDestination:

Initializes a Bit6OutgoingMessage object

- (nonnull instancetype)initWithDestination:(nonnull Bit6Address *)destination

Parameters

destination

An Bit6Address object to where to send the message.

Return Value

a new Bit6OutgoingMessage object.

Declared In

Bit6OutgoingMessage.h

sendWithCompletionHandler:

Sends the message.

- (void)sendWithCompletionHandler:(nullable Bit6CompletionHandler)completion

Parameters

completion

block to be called when the operation is completed.

Declared In

Bit6OutgoingMessage.h

uniqueAudioFilePath

Returns an unique path to store an audio file.

- (nonnull NSString *)uniqueAudioFilePath

Declared In

Bit6OutgoingMessage.h