obtain

public static SightMessage obtain(Uri localUri, int duration)

Creates an instance of the SightMessage object. Only supports files starting with 'file'. To support 'content', use obtain.

Return

An instance of the SightMessage object.

Parameters

localUri

The URI of the short video.

duration

The duration of the video.


public static SightMessage obtain(Context context, Uri localUri, int duration)

Creates an instance of the SightMessage object.

Return

An instance of the SightMessage object.

Parameters

context

The context.

localUri

The URI of the short video.

duration

The duration of the video.


public static SightMessage obtain(Context context, Uri thumbUri, Uri localUri, int duration)

Creates an instance of the SightMessage object.

Return

An instance of the SightMessage object.

Parameters

context

The context.

thumbUri

The thumbnail URI.

localUri

The local URI of the short video.

duration

The duration of the video.


@Deprecated()
public static SightMessage obtain(Uri thumbUri, Uri localUri, int duration)

Deprecated

Return

SightMessage object instance. @Deprecated Creates a SightMessage object instance. Only supports files starting with file. To support content, use obtain

Parameters

thumbUri

The URI of the thumbnail.

localUri

The URI of the short video.