Skip to content

Bubble Type: Audio Bubble

Sebastian Walker edited this page Oct 28, 2015 · 1 revision
AudioBubble.cs

##Description The text bubble is used for displaying voice messages or other audio files.

##Special Properties

The following properties are special to this bubble type. In addition, there are bubble properties which apply to all bubble types. Those are listed here.

###Resource Type

Type bubble.AudioType

Contains the resource type of the Bubble's audio.
Can be either Url for a URL requested audio file, or File for an attached audio file

Example:

type = bubble.AudioType;
//type is now equal to Url

###Recording

bool bubble.Recording

If the Audio Bubble is recording or not.

Example:

recording = bubble.EmojiSpans;
//recording is now equal to true

###Length

int bubble.Seconds

Contains the length of the bubbles audio in seconds.

Example:

length = bubble.Seconds;
//length is now equal to 10

###Download Attempts

int bubble.DownloadAttempt

How many times the bubble has attempted to download the file.

Example:

attempts = bubble.DownloadAttempt;
//attempts is now equal to 3

###File Name

string bubble.FileName

The audios filename.

Example:

filename = bubble.FileName;
//filename is now equal to http://example.com/test.wav

Clone this wiki locally