Stay organized with collections
Save and categorize content based on your preferences.
Movie
open class Movie
Summary
Protected methods |
open Unit |
|
Public methods
decodeByteArray
open static fun decodeByteArray(
data: ByteArray!,
offset: Int,
length: Int
): Movie!
Deprecated: Deprecated in Java.
decodeFile
open static fun decodeFile(pathName: String!): Movie!
Deprecated: Deprecated in Java.
decodeStream
open static fun decodeStream(is: InputStream!): Movie!
Deprecated: Deprecated in Java.
duration
open fun duration(): Int
Deprecated: Deprecated in Java.
height
open fun height(): Int
Deprecated: Deprecated in Java.
isOpaque
open fun isOpaque(): Boolean
Deprecated: Deprecated in Java.
setTime
open fun setTime(relativeMilliseconds: Int): Boolean
Deprecated: Deprecated in Java.
width
open fun width(): Int
Deprecated: Deprecated in Java.
Protected methods
finalize
protected open fun finalize(): Unit
Deprecated: Deprecated in Java.
Exceptions |
java.lang.Throwable |
the Exception raised by this method |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Movie\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMovie\n=====\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/Movie \"View this page in Java\") \n\n```\nopen class Movie\n```\n\n|---|-----------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.graphics.Movie](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 28.**\n|\n| Prefer [android.graphics.drawable.AnimatedImageDrawable](/reference/kotlin/android/graphics/drawable/AnimatedImageDrawable).\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open static [Movie](#)! | [decodeByteArray](#decodeByteArray(kotlin.ByteArray,%20kotlin.Int,%20kotlin.Int))`(`data:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!`, `offset:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `length:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n| open static [Movie](#)! | [decodeFile](#decodeFile(kotlin.String))`(`pathName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n| open static [Movie](#)! | [decodeStream](#decodeStream(java.io.InputStream))`(`is:` `[InputStream](../../java/io/InputStream.html#)!`)` \u003cbr /\u003e |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [draw](#draw(android.graphics.Canvas,%20kotlin.Float,%20kotlin.Float))`(`canvas:` `[Canvas](/reference/kotlin/android/graphics/Canvas)!`, `x:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `y:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` \u003cbr /\u003e |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [draw](#draw(android.graphics.Canvas,%20kotlin.Float,%20kotlin.Float,%20android.graphics.Paint))`(`canvas:` `[Canvas](/reference/kotlin/android/graphics/Canvas)!`, `x:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `y:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `paint:` `[Paint](/reference/kotlin/android/graphics/Paint)!`)` \u003cbr /\u003e |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [duration](#duration())`()` \u003cbr /\u003e |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [height](#height())`()` \u003cbr /\u003e |\n| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isOpaque](#isOpaque())`()` \u003cbr /\u003e |\n| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [setTime](#setTime(kotlin.Int))`(`relativeMilliseconds:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [width](#width())`()` \u003cbr /\u003e |\n\n| Protected methods ||\n|-----------------------------------------------------------------------------------|------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [finalize](#finalize())`()` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### decodeByteArray\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen static fun decodeByteArray(\n data: ByteArray!, \n offset: Int, \n length: Int\n): Movie!\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### decodeFile\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen static fun decodeFile(pathName: String!): Movie!\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### decodeStream\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen static fun decodeStream(is: InputStream!): Movie!\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### draw\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun draw(\n canvas: Canvas!, \n x: Float, \n y: Float\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### draw\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun draw(\n canvas: Canvas!, \n x: Float, \n y: Float, \n paint: Paint!\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### duration\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun duration(): Int\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### height\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun height(): Int\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### isOpaque\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun isOpaque(): Boolean\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### setTime\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun setTime(relativeMilliseconds: Int): Boolean\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### width\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun width(): Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nProtected methods\n-----------------\n\n### finalize\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected open fun finalize(): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\n| Exceptions ||\n|-----------------------|---------------------------------------|\n| `java.lang.Throwable` | the `Exception` raised by this method |"]]