Creating

Attachments are created in the context of a VoiceLayerChannel.

Post an Attachment to a Channel

When posting an attachment to a channel the SDK will return a VoiceLayerMessage associated with the specified attachment.

VoiceLayerMessage message = channel.postAttachment(attachmentFile);

or

channel.postAttachment(attachmentFile, new VoiceLayerCreateCallback<VoiceLayerMessage>() {
    @Override
    public void onCreateComplete(VoiceLayerMessage message, VoiceLayerException e) {

    }
});