Stay organized with collections
Save and categorize content based on your preferences.
GestureLibraries
class GestureLibraries
Summary
Public methods
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,["# GestureLibraries\n\nAdded in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nGestureLibraries\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/gesture/GestureLibraries \"View this page in Java\") \n\n```\nclass GestureLibraries\n```\n\n|---|---------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.gesture.GestureLibraries](#) |\n\nSummary\n-------\n\n| Public methods ||\n|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [GestureLibrary](/reference/kotlin/android/gesture/GestureLibrary)! | [fromFile](#fromFile(java.io.File))`(`path:` `[File](../../java/io/File.html#)!`)` \u003cbr /\u003e |\n| static [GestureLibrary](/reference/kotlin/android/gesture/GestureLibrary)! | [fromFile](#fromFile(kotlin.String))`(`path:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n| static [GestureLibrary](/reference/kotlin/android/gesture/GestureLibrary) | [fromFileDescriptor](#fromFileDescriptor(android.os.ParcelFileDescriptor))`(`pfd:` `[ParcelFileDescriptor](../os/ParcelFileDescriptor.html#)`)` \u003cbr /\u003e |\n| static [GestureLibrary](/reference/kotlin/android/gesture/GestureLibrary)! | [fromPrivateFile](#fromPrivateFile(android.content.Context,%20kotlin.String))`(`context:` `[Context](../content/Context.html#)!`, `name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n| static [GestureLibrary](/reference/kotlin/android/gesture/GestureLibrary)! | [fromRawResource](#fromRawResource(android.content.Context,%20kotlin.Int))`(`context:` `[Context](../content/Context.html#)!`, `resourceId:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### fromFile\n\nAdded in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun fromFile(path: File!): GestureLibrary!\n``` \n\n### fromFile\n\nAdded in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun fromFile(path: String!): GestureLibrary!\n``` \n\n### fromFileDescriptor\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun fromFileDescriptor(pfd: ParcelFileDescriptor): GestureLibrary\n```\n\n| Parameters ||\n|-------|----------------------------------------------------------------------------------------|\n| `pfd` | [ParcelFileDescriptor](../os/ParcelFileDescriptor.html#): This value cannot be `null`. |\n\n| Return ||\n|--------------------------------------------------------------------|------------------------------|\n| [GestureLibrary](/reference/kotlin/android/gesture/GestureLibrary) | This value cannot be `null`. |\n\n### fromPrivateFile\n\nAdded in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun fromPrivateFile(\n context: Context!, \n name: String!\n): GestureLibrary!\n``` \n\n### fromRawResource\n\nAdded in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun fromRawResource(\n context: Context!, \n resourceId: Int\n): GestureLibrary!\n```"]]