obtain

public static ImageMessage obtain(Uri localUri)

Generates an ImageMessage object.

Return

An instance of the ImageMessage object.

Parameters

localUri

The URI of the original image.


public static ImageMessage obtain(Uri localUri, boolean isFull)

Creates an ImageMessage object.

Return

An instance of the ImageMessage object.

Parameters

localUri

The URI of the large image.

isFull

Indicates whether to send the original image.


@Deprecated()
public static ImageMessage obtain()

Deprecated

Creates an ImageMessage object.

Return

An instance of the ImageMessage object. @Deprecated It is recommended to use obtain for handling image messages. If you need to set the thumbnail separately, call setThumUri.


@Deprecated()
public static ImageMessage obtain(Uri thumUri, Uri localUri)

Deprecated

Generates an ImageMessage object.

Return

An instance of the ImageMessage object. @Deprecated It is recommended to use obtain for handling image messages. If you need to set the thumbnail separately, call setThumUri.

Parameters

thumUri

The URI of the thumbnail image.

localUri

The URI of the full-size image.


@Deprecated()
public static ImageMessage obtain(Uri thumUri, Uri localUri, boolean isFull)

Deprecated

Generates an ImageMessage object.

Return

An instance of the ImageMessage object. @Deprecated It is recommended to use obtain for handling image messages. If you need to set the thumbnail separately, call setThumUri.

Parameters

thumUri

The URI of the thumbnail image.

localUri

The URI of the full-size image.

isFull

Indicates whether to send the original image.