Udostępnij za pośrednictwem


Resources.GetMovie(Int32) Method

Definition

Return a movie object associated with the particular resource ID.

[Android.Runtime.Register("getMovie", "(I)Landroid/graphics/Movie;", "GetGetMovie_IHandler")]
public virtual Android.Graphics.Movie? GetMovie (int id);
[<Android.Runtime.Register("getMovie", "(I)Landroid/graphics/Movie;", "GetGetMovie_IHandler")>]
abstract member GetMovie : int -> Android.Graphics.Movie
override this.GetMovie : int -> Android.Graphics.Movie

Parameters

id
Int32

The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.

Returns

Attributes

Exceptions

Throws NotFoundException if the given ID does not exist.

Remarks

Return a movie object associated with the particular resource ID.

This member is deprecated. Prefer android.graphics.drawable.AnimatedImageDrawable.

Java documentation for android.content.res.Resources.getMovie(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to