Skip to content

Bubble Type: Image Bubble

Sebastian Walker edited this page Oct 29, 2015 · 2 revisions
ImageBubble.cs

##Description The image bubble is used for displaying image messages.

##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.ImageType

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

Example:

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

###Thumbnail Bytes

byte[] bubble.ThumbnailBytes

Contains the image thumbnail's bytes.

Example:

thumbnail = bubble.ThumbnailBytes;

###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

###Animation

bool bubble.IsAnimated

Contains the information if the image is animated.

Example:

is_animated = bubble.IsAnimated;
//is_animated is now equal to false

###File Name

string bubble.FileName

The image's filename.

Example:

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

Clone this wiki locally