### Configure GifTextureView in XML Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifTextureView.html Example of how to specify the GIF source within an XML layout file using a custom namespace. ```xml {@code * } ``` -------------------------------- ### GifDrawable start() Method Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Starts the animation. This method is thread-safe and does nothing if the GIF is not animated. ```java void start() ``` -------------------------------- ### static void initialize(Context context) Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/LibraryLoader.html Initializes the library loader with the provided application context to ensure native libraries are loaded correctly when needed. ```APIDOC ## static void initialize(Context context) ### Description Initializes the loader with the given Context. Subsequent calls have no effect as the application Context is retrieved. Libraries are loaded lazily when needed. ### Parameters #### Method Parameters - **context** (Context) - Required - Any non-null Context instance. ### Request Example LibraryLoader.initialize(getApplicationContext()); ``` -------------------------------- ### LibraryLoader initialize method Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-9.html Details on the `initialize` method for LibraryLoader. ```APIDOC ## LibraryLoader Methods ### Description Provides information about the `initialize` method available in `pl.droidsonroids.gif.LibraryLoader`. ### Methods - **initialize(Context)**: Initializes the loader with the given `Context`. ``` -------------------------------- ### GET /pl.droidsonroids.gif.GifTextureView/getTransform Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Retrieves the transform associated with the GifTextureView. ```APIDOC ## GET /pl.droidsonroids.gif.GifTextureView/getTransform ### Description Returns the transform associated with this texture view, either set explicitly by setTransform or computed according to the current scale type. ### Method GET ### Parameters #### Request Body - **Matrix** (Matrix) - Required - The matrix to be populated with the current transform. ``` -------------------------------- ### GifDrawable getOpacity() Method Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Gets the opacity of the drawable. ```java int getOpacity() ``` -------------------------------- ### Construct GifTexImage2D instance Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifTexImage2D.html Initializes a new instance with a specified input source and configuration options. ```java GifTexImage2D(InputSource inputSource, GifOptions options) ``` -------------------------------- ### Frame Duration Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Method to get the duration of a specific frame. ```APIDOC ## getFrameDuration getFrameDuration ### Description Returns the duration of the given frame in milliseconds. If there is no data (no GraphicsControl Extension blocks or the drawable is recycled), 0 is returned. ### Method int ### Endpoint getFrameDuration ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **index** (int) - Required - Index of the frame ### Request Example None ### Response #### Success Response (200) int - The duration of the frame in milliseconds. #### Response Example None ``` -------------------------------- ### Constructor: InputSource.FileDescriptorSource Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.FileDescriptorSource.html Documentation for the constructor of the InputSource.FileDescriptorSource class. ```APIDOC ## Constructor: InputSource.FileDescriptorSource ### Description Constructs a new InputSource using a FileDescriptor as the source. ### Constructor Signature `InputSource.FileDescriptorSource(FileDescriptor fileDescriptor)` ### Parameters - **fileDescriptor** (FileDescriptor) - Required - The source file descriptor. ``` -------------------------------- ### GifDrawable getIntrinsicWidth() Method Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Gets the intrinsic width of the drawable. ```java int getIntrinsicWidth() ``` -------------------------------- ### GifDrawable Initialization and Configuration Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawableInit.html This section details the methods available in the GifDrawableInit class for configuring and building GifDrawable instances. ```APIDOC ## POST /api/users ### Description This endpoint allows for the creation of new user resources. ### Method POST ### Endpoint /api/users ### Parameters #### Query Parameters - **limit** (integer) - Optional - The maximum number of users to return. #### Request Body - **username** (string) - Required - The desired username for the new user. - **email** (string) - Required - The email address of the new user. ### Request Example ```json { "username": "johndoe", "email": "john.doe@example.com" } ``` ### Response #### Success Response (201) - **id** (integer) - The unique identifier for the newly created user. - **username** (string) - The username of the created user. - **email** (string) - The email address of the created user. #### Response Example ```json { "id": 123, "username": "johndoe", "email": "john.doe@example.com" } ``` ``` -------------------------------- ### GifDrawable getIntrinsicHeight() Method Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Gets the intrinsic height of the drawable. ```java int getIntrinsicHeight() ``` -------------------------------- ### Get dimensions and duration Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifTexImage2D.html Retrieves metadata about the GIF image. ```java int getWidth() ``` ```java int getHeight() ``` ```java int getDuration() ``` -------------------------------- ### GifAnimationMetaData Constructor Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifAnimationMetaData.html Initializes GifAnimationMetaData by retrieving metadata from a given android.net.Uri using a ContentResolver. ```APIDOC ## GifAnimationMetaData(ContentResolver resolver, Uri uri) ### Description Retrieves metadata from android.net.Uri which is resolved using `resolver`. ### Parameters #### Path Parameters - **resolver** (ContentResolver) - Optional - Resolver, null is allowed for file:// scheme Uris only - **uri** (Uri) - Required - GIF Uri, cannot be null. ``` -------------------------------- ### android.view.GifTextureView getZ() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the Z-order of this view. This is the order in which the views are drawn. ```APIDOC ## GET android.view.GifTextureView.getZ() ### Description Gets the Z-order of this view. This is the order in which the views are drawn. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **z** (float) - The Z-order of the view. ``` -------------------------------- ### Initialize LibraryLoader Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/LibraryLoader.html Initializes the loader with a provided Context. Subsequent calls are ignored as the application context is cached. ```java static void initialize(@NonNull() Context context) ``` -------------------------------- ### Constructor: InputSource.ResourcesSource Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.ResourcesSource.html Documentation for the constructor used to initialize a new ResourcesSource from Android resources. ```APIDOC ## Constructor: InputSource.ResourcesSource ### Description Constructs a new source using an Android resource (raw or drawable). ### Parameters - **resources** (Resources) - Required - The Resources object to read from. - **resourceId** (int) - Required - The resource ID of the drawable or raw file. ### Usage Example ```java InputSource.ResourcesSource source = new InputSource.ResourcesSource(getResources(), R.drawable.my_gif); ``` ``` -------------------------------- ### android.view.GifImageView getZ() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the Z-order of this view. This is the order in which the views are drawn. ```APIDOC ## GET android.view.GifImageView.getZ() ### Description Gets the Z-order of this view. This is the order in which the views are drawn. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **z** (float) - The Z-order of the view. ``` -------------------------------- ### android.view.GifImageButton getZ() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the Z-order of this view. This is the order in which the views are drawn. ```APIDOC ## GET android.view.GifImageButton.getZ() ### Description Gets the Z-order of this view. This is the order in which the views are drawn. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **z** (float) - The Z-order of the view. ``` -------------------------------- ### GifOptions Constructor Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifOptions.html Initializes a new instance of the GifOptions class. ```APIDOC ## Constructor: GifOptions() ### Description Initializes a new instance of the GifOptions class. ### Constructor Detail ```java GifOptions() ``` ``` -------------------------------- ### GifTextView Constructors Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifTextView.html Constructors for initializing GifTextView, supporting standard context and attribute sets with GIF interpretation. ```APIDOC ## GifTextView Constructors ### Description Initializes a new instance of GifTextView. Constructors that accept AttributeSet attempt to interpret compound drawables defined in XML attributes as GIFs. ### Constructors - GifTextView(Context context) - GifTextView(Context context, AttributeSet attrs) - GifTextView(Context context, AttributeSet attrs, int defStyle) - GifTextView(Context context, AttributeSet attrs, int defStyle, int defStyleRes) ``` -------------------------------- ### android.view.GifTextView getZ() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the Z-order of this view. This is the order in which the views are drawn. ```APIDOC ## GET android.view.GifTextView.getZ() ### Description Gets the Z-order of this view. This is the order in which the views are drawn. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **z** (float) - The Z-order of the view. ``` -------------------------------- ### android.view.GifTextureView getY() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the vertical location of this view relative to its parent. ```APIDOC ## GET android.view.GifTextureView.getY() ### Description Gets the vertical location of this view relative to its parent. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **y** (float) - The vertical location of the view. ``` -------------------------------- ### Constructor for InputSource.AssetFileDescriptorSource Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.AssetFileDescriptorSource.html Constructor used to initialize the source with an AssetFileDescriptor. ```java InputSource.AssetFileDescriptorSource(AssetFileDescriptor assetFileDescriptor) ``` -------------------------------- ### android.view.GifImageView getY() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the vertical location of this view relative to its parent. ```APIDOC ## GET android.view.GifImageView.getY() ### Description Gets the vertical location of this view relative to its parent. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **y** (float) - The vertical location of the view. ``` -------------------------------- ### GifTexImage2D Constructor Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifTexImage2D.html Constructs a new GifTexImage2D instance for OpenGL rendering. ```APIDOC ## Constructor: GifTexImage2D ### Description Constructs a new GifTexImage2D instance to handle animated GIF frames for OpenGL textures. ### Parameters - **inputSource** (InputSource) - Required - The source of the GIF data. - **options** (GifOptions) - Optional - Options controlling parameters like subsampling and opacity. ``` -------------------------------- ### android.view.GifImageButton getY() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the vertical location of this view relative to its parent. ```APIDOC ## GET android.view.GifImageButton.getY() ### Description Gets the vertical location of this view relative to its parent. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **y** (float) - The vertical location of the view. ``` -------------------------------- ### InputSource.AssetFileDescriptorSource Constructor Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.AssetFileDescriptorSource.html Documentation for the constructor of InputSource.AssetFileDescriptorSource, which takes an AssetFileDescriptor as input. ```APIDOC ## InputSource.AssetFileDescriptorSource(AssetFileDescriptor assetFileDescriptor) ### Description Constructs new source using an AssetFileDescriptor. ### Method CONSTRUCTOR ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ### Constructor Detail * **assetFileDescriptor** (AssetFileDescriptor) - Required - source asset file descriptor. ``` -------------------------------- ### android.view.GifTextView getY() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the vertical location of this view relative to its parent. ```APIDOC ## GET android.view.GifTextView.getY() ### Description Gets the vertical location of this view relative to its parent. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **y** (float) - The vertical location of the view. ``` -------------------------------- ### Constructor: InputSource.InputStreamSource Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.InputStreamSource.html Initializes a new InputStreamSource using an InputStream. ```APIDOC ## Constructor: InputSource.InputStreamSource ### Description Constructs a new source using an InputStream. The provided stream must support marking. ### Parameters #### Constructor Parameters - **inputStream** (InputStream) - Required - The source input stream, which must support marking. ``` -------------------------------- ### InputSource.ByteArraySource Constructor Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.ByteArraySource.html Documentation for the constructor of the InputSource.ByteArraySource class. ```APIDOC ## Constructor: InputSource.ByteArraySource ### Description Constructs a new source using a byte array. The provided array can be larger than the actual size of the GIF data. ### Parameters - **bytes** (Array) - Required - The source byte array containing GIF data. ``` -------------------------------- ### android.view.GifTextureView getX() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the horizontal location of this view relative to its parent. ```APIDOC ## GET android.view.GifTextureView.getX() ### Description Gets the horizontal location of this view relative to its parent. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **x** (float) - The horizontal location of the view. ``` -------------------------------- ### Construct InputSource.FileDescriptorSource Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.FileDescriptorSource.html Constructor for creating a new FileDescriptorSource instance. ```java InputSource.FileDescriptorSource(FileDescriptor fileDescriptor) ``` -------------------------------- ### android.view.GifImageView getX() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the horizontal location of this view relative to its parent. ```APIDOC ## GET android.view.GifImageView.getX() ### Description Gets the horizontal location of this view relative to its parent. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **x** (float) - The horizontal location of the view. ``` -------------------------------- ### android.view.GifImageButton getX() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the horizontal location of this view relative to its parent. ```APIDOC ## GET android.view.GifImageButton.getX() ### Description Gets the horizontal location of this view relative to its parent. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **x** (float) - The horizontal location of the view. ``` -------------------------------- ### android.os.GifAnimationMetaData Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-4.html Documentation for the describeContents method in android.os.GifAnimationMetaData. ```APIDOC ## android.os.GifAnimationMetaData Methods ### describeContents #### Description Describes the contents of this object. #### Method function #### Endpoint N/A ``` -------------------------------- ### GifImageView Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-4.html Documentation for various methods available in GifImageView, which inherit from GifTextView. ```APIDOC ## GifImageView Methods ### destroyDrawingCache #### Description Destroys the drawing cache. #### Method function #### Endpoint N/A ``` ```APIDOC ## GifImageView Methods ### dispatchApplyWindowInsets #### Description Dispatches window insets to the view. #### Method function #### Parameters - **p0** (WindowInsets) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchCapturedPointerEvent #### Description Dispatches a captured pointer event. #### Method function #### Parameters - **p0** (MotionEvent) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchConfigurationChanged #### Description Dispatches a configuration change event. #### Method function #### Parameters - **p0** (Configuration) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchCreateViewTranslationRequest #### Description Dispatches a create view translation request. #### Method function #### Parameters - **p0** (Map) - Description not available - **p1** (Array) - Description not available - **p2** (TranslationCapability) - Description not available - **p3** (List) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchDisplayHint #### Description Dispatches a display hint. #### Method function #### Parameters - **p0** (int) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchDragEvent #### Description Dispatches a drag event. #### Method function #### Parameters - **p0** (DragEvent) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchDrawableHotspotChanged #### Description Dispatches a drawable hotspot changed event. #### Method function #### Parameters - **p0** (float) - Description not available - **p1** (float) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchFinishTemporaryDetach #### Description Dispatches the completion of a temporary detach. #### Method function #### Endpoint N/A ``` ```APIDOC ## GifImageView Methods ### dispatchGenericMotionEvent #### Description Dispatches a generic motion event. #### Method function #### Parameters - **p0** (MotionEvent) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchKeyEvent #### Description Dispatches a key event. #### Method function #### Parameters - **p0** (KeyEvent) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchKeyEventPreIme #### Description Dispatches a key event before it is processed by the IME. #### Method function #### Parameters - **p0** (KeyEvent) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchKeyShortcutEvent #### Description Dispatches a key shortcut event. #### Method function #### Parameters - **p0** (KeyEvent) - Description not available ``` ```APIDOC ## GifImageView Methods ### dispatchNestedFling #### Description Dispatches a nested fling event. #### Method function #### Parameters - **p0** (float) - Description not available - **p1** (float) - Description not available - **p2** (boolean) - Description not available ``` -------------------------------- ### android.view.GifTextView getX() Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the horizontal location of this view relative to its parent. ```APIDOC ## GET android.view.GifTextView.getX() ### Description Gets the horizontal location of this view relative to its parent. ### Method GET ### Endpoint N/A (Method within a class) ### Parameters None ### Response #### Success Response (200) - **x** (float) - The horizontal location of the view. ``` -------------------------------- ### Get Alpha Value Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Retrieves the current alpha value of the drawable. ```java int getAlpha() ``` -------------------------------- ### GifImageButton Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-4.html Documentation for various methods available in GifImageButton, which inherit from GifTextView. ```APIDOC ## GifImageButton Methods ### destroyDrawingCache #### Description Destroys the drawing cache. #### Method function #### Endpoint N/A ``` ```APIDOC ## GifImageButton Methods ### dispatchApplyWindowInsets #### Description Dispatches window insets to the view. #### Method function #### Parameters - **p0** (WindowInsets) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchCapturedPointerEvent #### Description Dispatches a captured pointer event. #### Method function #### Parameters - **p0** (MotionEvent) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchConfigurationChanged #### Description Dispatches a configuration change event. #### Method function #### Parameters - **p0** (Configuration) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchCreateViewTranslationRequest #### Description Dispatches a create view translation request. #### Method function #### Parameters - **p0** (Map) - Description not available - **p1** (Array) - Description not available - **p2** (TranslationCapability) - Description not available - **p3** (List) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchDisplayHint #### Description Dispatches a display hint. #### Method function #### Parameters - **p0** (int) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchDragEvent #### Description Dispatches a drag event. #### Method function #### Parameters - **p0** (DragEvent) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchDrawableHotspotChanged #### Description Dispatches a drawable hotspot changed event. #### Method function #### Parameters - **p0** (float) - Description not available - **p1** (float) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchFinishTemporaryDetach #### Description Dispatches the completion of a temporary detach. #### Method function #### Endpoint N/A ``` ```APIDOC ## GifImageButton Methods ### dispatchGenericMotionEvent #### Description Dispatches a generic motion event. #### Method function #### Parameters - **p0** (MotionEvent) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchKeyEvent #### Description Dispatches a key event. #### Method function #### Parameters - **p0** (KeyEvent) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchKeyEventPreIme #### Description Dispatches a key event before it is processed by the IME. #### Method function #### Parameters - **p0** (KeyEvent) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchKeyShortcutEvent #### Description Dispatches a key shortcut event. #### Method function #### Parameters - **p0** (KeyEvent) - Description not available ``` ```APIDOC ## GifImageButton Methods ### dispatchNestedFling #### Description Dispatches a nested fling event. #### Method function #### Parameters - **p0** (float) - Description not available - **p1** (float) - Description not available - **p2** (boolean) - Description not available ``` -------------------------------- ### Get Paint Object Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Returns the Paint object used for drawing. ```java @NonNull() final Paint getPaint() ``` -------------------------------- ### GifImageButton Constructors Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifImageButton.html Constructors for initializing a GifImageButton instance. ```APIDOC ## GifImageButton Constructors ### GifImageButton(Context context) A corresponding superclass constructor wrapper. ### GifImageButton(Context context, AttributeSet attrs) Like equivalent from superclass but also try to interpret src and backgroundattributes as GifDrawable. ### GifImageButton(Context context, AttributeSet attrs, int defStyle) Like equivalent from superclass but also try to interpret src and backgroundattributes as GIFs. ### GifImageButton(Context context, AttributeSet attrs, int defStyle, int defStyleRes) Like equivalent from superclass but also try to interpret src and backgroundattributes as GIFs. ``` -------------------------------- ### GifDrawableInit Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-19.html Details on methods available in the GifDrawableInit class. ```APIDOC ## taskExecutor(ScheduledThreadPoolExecutor) ### Description Sets or resets executor for rendering tasks. ### Method function ### Endpoint pl.droidsonroids.gif.GifDrawableInit ## threadPoolSize(int) ### Description Sets thread pool size for rendering tasks. ### Method function ### Endpoint pl.droidsonroids.gif.GifDrawableInit ``` -------------------------------- ### Get frame count Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifTexImage2D.html Returns the total number of frames in the GIF. ```java int getNumberOfFrames() ``` -------------------------------- ### Get current frame index Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifTexImage2D.html Returns the index of the frame currently being displayed. ```java int getCurrentFrameIndex() ``` -------------------------------- ### Structure and Content Provision Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-15.html Details on methods for providing view structure and virtual structure for various GIF view implementations. ```APIDOC ## onProvideStructure ### Description Provides the structure of the view. ### Method N/A (Method override) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ## onProvideVirtualStructure ### Description Provides the virtual structure of the view. ### Method N/A (Method override) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### GifTextView Properties - getLetterSpacing Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the amount of letter spacing. This method is specific to GifTextView. ```APIDOC ## GET /textview/letter_spacing ### Description Gets the amount of letter spacing. ### Method GET ### Endpoint /textview/letter_spacing ### Parameters #### Path Parameters None #### Query Parameters None ### Request Example None ### Response #### Success Response (200) - **letterSpacing** (float) - The letter spacing value. #### Response Example ```json { "letterSpacing": 0.05 } ``` ``` -------------------------------- ### Window Insets Handling Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-15.html Methods for handling window inset changes. ```APIDOC ## onApplyWindowInsets(WindowInsets) [ENDPOINT] ### Description Handles the application of window insets to the view. ### Method N/A (Method signature provided) ### Endpoint N/A (Method signature provided) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### Corner Radius and Transform Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Methods for setting and getting corner radius and transformation for drawing. ```APIDOC ## setCornerRadius setCornerRadius ### Description Sets the corner radius to be applied when drawing the bitmap. Note that changing the corner radius will cause replacing the current Paint shader by BitmapShader. The transform set by setTransform will also be replaced. ### Method void ### Endpoint setCornerRadius ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **cornerRadius** (float) - Required - Corner radius or 0 to remove rounding ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` ```APIDOC ## getCornerRadius getCornerRadius ### Description Gets the current corner radius. ### Method float ### Endpoint getCornerRadius ### Parameters None ### Request Example None ### Response #### Success Response (200) float - The current corner radius. #### Response Example None ``` ```APIDOC ## setTransform setTransform ### Description Specify a Transform implementation to customize how the GIF's current Bitmap is drawn. ### Method void ### Endpoint setTransform ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **transform** (Transform) - Nullable - New Transform or null to remove the current one. ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` ```APIDOC ## getTransform getTransform ### Description Gets the current transform. ### Method Transform ### Endpoint getTransform ### Parameters None ### Request Example None ### Response #### Success Response (200) Transform - The current Transform object or null if none is set. #### Response Example None ``` -------------------------------- ### InputSource.UriSource Constructor Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.UriSource.html Constructs a new InputSource.UriSource using a ContentResolver and a Uri. ```APIDOC ## InputSource.UriSource Constructor ### Description Constructs new source. ### Method Constructor ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ### Constructor Detail #### InputSource.UriSource ```java InputSource.UriSource(ContentResolver contentResolver, Uri uri) ``` Parameters: - `contentResolver` (ContentResolver) - resolver, null is allowed for file:// scheme Uris only - `uri` (Uri) - GIF Uri, cannot be null. ``` -------------------------------- ### State Management and RTL Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-15.html Details on methods for restoring and saving instance state, and handling RTL properties for various GIF view implementations. ```APIDOC ## onRestoreInstanceState ### Description Called to restore the view's state. ### Method N/A (Method override) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ## onSaveInstanceState ### Description Called to save the view's state. ### Method N/A (Method override) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ## onRtlPropertiesChanged ### Description Called when RTL properties have changed. ### Method N/A (Method override) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### Color Filter and Tinting Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Methods for setting and getting color filters and tint information. ```APIDOC ## getColorFilter getColorFilter ### Description Gets the current color filter. ### Method ColorFilter ### Endpoint getColorFilter ### Parameters None ### Request Example None ### Response #### Success Response (200) ColorFilter - The current color filter. #### Response Example None ``` ```APIDOC ## setTintList setTintList ### Description Sets the tint list for the drawable. ### Method void ### Endpoint setTintList ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **tint** (ColorStateList) - Required - The color state list to apply as a tint. ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` ```APIDOC ## setTintMode setTintMode ### Description Sets the tint mode for the drawable. ### Method void ### Endpoint setTintMode ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **tintMode** (PorterDuff.Mode) - Nullable - The PorterDuff.Mode to use for tinting. ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### Construct InputSource.FileSource with File Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.FileSource.html Constructs a new InputSource.FileSource using a java.io.File object. Ensure the File object is valid and accessible. ```java InputSource.FileSource(File file) ``` -------------------------------- ### Library Method Index - H Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-8.html A collection of methods starting with 'H' available in the android-gif-drawable library classes. ```APIDOC ## Library Methods (H) ### Description This section lists functions available in the library classes such as GifTextView, GifImageView, GifImageButton, and GifDrawable. ### Methods - **hasExplicitFocusable()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasFocus()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasFocusable()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasFocusStateSpecified()**: Available in GifDrawable - **hashCode()**: Available in Annotation - **hasNestedScrollingParent()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasOnClickListeners()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasOnLongClickListeners()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasOverlappingRendering()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasPointerCapture()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasSelection()**: Available in GifTextView - **hasTransientState()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView - **hasWindowFocus()**: Available in GifTextView, GifImageButton, GifImageView, GifTextureView ``` -------------------------------- ### Content Receive and Pointer Icon Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-15.html Details on methods for receiving content and resolving pointer icons for various GIF view implementations. ```APIDOC ## onReceiveContent ### Description Called when content is received. ### Method N/A (Method override) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ## onResolvePointerIcon ### Description Resolves the pointer icon for the given motion event. ### Method N/A (Method override) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### GIF TextView Specific Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Methods specific to GifTextView, such as getting offset for position and GIF options. ```APIDOC ## GET /api/gif/textview/offset-for-position ### Description Calculates and returns the offset for a given position within the GifTextView. ### Method GET ### Endpoint /api/gif/textview/offset-for-position ### Parameters #### Query Parameters - **x** (float) - Required - The x-coordinate. - **y** (float) - Required - The y-coordinate. ### Response #### Success Response (200) - **offset** (integer) - The calculated offset. ### Request Example ```json { "x": 10.5, "y": 20.2 } ``` ### Response Example ```json { "offset": 150 } ``` ``` ```APIDOC ## GET /api/gif/drawable/options ### Description Retrieves the options associated with the GifDrawable initialization. ### Method GET ### Endpoint /api/gif/drawable/options ### Parameters #### Query Parameters - **sourceType** (string) - Required - The type of the source containing the options (e.g., pl.droidsonroids.gif.GifDrawableInit). ### Response #### Success Response (200) - **options** (object) - The GIF drawable options. ### Request Example ```json { "sourceType": "pl.droidsonroids.gif.GifDrawableInit" } ``` ### Response Example ```json { "options": { "loopCount": 0, "duration": 100 } } ``` ``` -------------------------------- ### GifTextView Properties - Link Text Colors Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the text colors for links. This method is specific to GifTextView. ```APIDOC ## GET /textview/link_text_colors ### Description Gets the text colors for links. ### Method GET ### Endpoint /textview/link_text_colors ### Parameters #### Path Parameters None #### Query Parameters None ### Request Example None ### Response #### Success Response (200) - **linkTextColors** (ColorStateList) - The text colors for links. #### Response Example ```json { "linkTextColors": {"default": "#0000FF"} } ``` ``` -------------------------------- ### InputSource.FileSource Constructors Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.FileSource.html Provides details on how to construct an InputSource.FileSource object using either a File object or a file path. ```APIDOC ## InputSource.FileSource Constructors ### Description Constructors for creating `InputSource.FileSource` objects. ### Constructor Summary | Constructor | Description | |---|---| | `InputSource.FileSource(File file)` | Constructs new source. | | `InputSource.FileSource(String filePath)` | Constructs new source. | ### Constructor Detail #### InputSource.FileSource(File file) Constructs new source. Parameters: `file` (File) - source file #### InputSource.FileSource(String filePath) Constructs new source. Parameters: `filePath` (String) - source file path ``` -------------------------------- ### GifAnimationMetaData Constructors Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifAnimationMetaData.html This section details the various constructors available for creating GifAnimationMetaData objects from different data sources. ```APIDOC ## GifAnimationMetaData Constructors ### Constructor Detail * #### GifAnimationMetaData ``` GifAnimationMetaData(Resources res, int id) ``` Retrieves from resource. Parameters: `res` - Resources to read from `id` - resource id * #### GifAnimationMetaData ``` GifAnimationMetaData(AssetManager assets, String assetName) ``` Retrieves metadata from asset. Parameters: `assets` - AssetManager to read from `assetName` - name of the asset * #### GifAnimationMetaData ``` GifAnimationMetaData(String filePath) ``` Constructs metadata from given file path. Parameters: `filePath` - path to the GIF file * #### GifAnimationMetaData ``` GifAnimationMetaData(File file) ``` Equivalent to `{@code}` GifMetadata(file. Parameters: `file` - the GIF file * #### GifAnimationMetaData ``` GifAnimationMetaData(InputStream stream) ``` Retrieves metadata from InputStream.InputStream must support marking, IllegalArgumentException will be thrown otherwise. Parameters: `stream` - stream to read from * #### GifAnimationMetaData ``` GifAnimationMetaData(AssetFileDescriptor afd) ``` Retrieves metadata from AssetFileDescriptor. Parameters: `afd` - source * #### GifAnimationMetaData ``` GifAnimationMetaData(FileDescriptor fd) ``` Retrieves metadata from FileDescriptor Parameters: `fd` - source * #### GifAnimationMetaData ``` GifAnimationMetaData(Array bytes) ``` Retrieves metadata from byte array. Parameters: `bytes` - raw GIF bytes * #### GifAnimationMetaData ``` GifAnimationMetaData(ByteBuffer buffer) ``` Retrieves metadata from ByteBuffer. Parameters: `buffer` - buffer containing GIF data ``` -------------------------------- ### Unique Drawing ID Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Methods to get the unique drawing ID for various GIF view types. ```APIDOC ## GET /api/view/drawingId ### Description Retrieves the unique drawing ID for GIF views. ### Method GET ### Endpoint /api/view/drawingId ### Parameters #### Query Parameters - **viewType** (string) - Required - Specifies the type of GIF view (e.g., GifImageView, GifTextureView, GifTextView, GifImageButton). ### Response #### Success Response (200) - **uniqueDrawingId** (long) - The unique drawing identifier. ### Response Example ```json { "uniqueDrawingId": 1234567890 } ``` ``` -------------------------------- ### Construct InputSource.FileSource with File Path Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.FileSource.html Constructs a new InputSource.FileSource using a String representing the file path. The path should be valid and point to an accessible file. ```java InputSource.FileSource(String filePath) ``` -------------------------------- ### View Measurement Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Methods related to getting the measured width and width/state from various GIF-compatible view types. ```APIDOC ## GET /api/views/gif-views ### Description Retrieves the measured width of GIF-compatible views. ### Method GET ### Endpoint /api/views/gif-views ### Parameters #### Query Parameters - **viewType** (string) - Required - The type of GIF-compatible view (e.g., GifImageButton, GifImageView, GifTextureView). ### Response #### Success Response (200) - **measuredWidth** (integer) - The measured width of the view. ### Request Example ```json { "viewType": "GifImageView" } ``` ### Response Example ```json { "measuredWidth": 100 } ``` ``` ```APIDOC ## GET /api/views/gif-views/width-state ### Description Retrieves the measured width and state of GIF-compatible views. ### Method GET ### Endpoint /api/views/gif-views/width-state ### Parameters #### Query Parameters - **viewType** (string) - Required - The type of GIF-compatible view (e.g., GifTextView, GifImageButton, GifImageView, GifTextureView). ### Response #### Success Response (200) - **measuredWidthAndState** (integer) - The measured width and state of the view. ### Request Example ```json { "viewType": "GifTextView" } ``` ### Response Example ```json { "measuredWidthAndState": 100 } ``` ``` -------------------------------- ### Get Buffer Percentage Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Returns the buffer percentage. For `GifDrawable`, the buffer is always considered full as there is no actual buffering. ```java int getBufferPercentage() ``` -------------------------------- ### GifImageView Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-13.html Documentation for methods available in GifImageView. ```APIDOC ## GifImageView ### Description Provides methods for displaying GIF drawables within an ImageView. ### Methods #### measure(int, int) - **Parameters** - `int` widthMeasureSpec - The width constraints for the view. - `int` heightMeasureSpec - The height constraints for the view. - **Description** Measures the view and its content to determine the measured width and height. ``` -------------------------------- ### InputSource Abstract Class and Implementations Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-9.html Overview of the abstract `InputSource` class and its concrete implementations for various data sources. ```APIDOC ## InputSource Classes ### Description Abstract class for all input sources, to be used with `GifTextureView`. Provides a base for different ways to supply GIF data. ### Implementations - **InputSource.AssetFileDescriptorSource**: Input using `AssetFileDescriptor` as a source. - **InputSource.AssetSource**: Input using an Android asset as a source. - **InputSource.ByteArraySource**: Input using a byte array as a source. - **InputSource.DirectByteBufferSource**: Input using `ByteBuffer` as a source. - **InputSource.FileDescriptorSource**: Input using `FileDescriptor` as a source. - **InputSource.FileSource**: Input using a `File` or path as source. - **InputSource.InputStreamSource**: Input using `InputStream` as a source. - **InputSource.ResourcesSource**: Input using an Android resource (raw or drawable) as a source. - **InputSource.UriSource**: Input using a `Uri` as source. ``` -------------------------------- ### InputSource.AssetSource Constructor Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/InputSource.AssetSource.html Constructs a new InputSource.AssetSource using an AssetManager and an asset name. ```APIDOC ## InputSource.AssetSource Constructor ### Description Constructs new source using Android asset. ### Method Constructor ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ### Constructor Detail #### InputSource.AssetSource ```java InputSource.AssetSource(AssetManager assetManager, String assetName) ``` Parameters: - `assetManager` (AssetManager) - AssetManager to read from - `assetName` (String) - name of the asset ``` -------------------------------- ### View Properties - getLeft Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-7.html Gets the final left pixel coordinate of this view. This method is available in GifTextView, GifImageButton, GifImageView, and GifTextureView. ```APIDOC ## GET /view/left ### Description Gets the final left pixel coordinate of this view. ### Method GET ### Endpoint /view/left ### Parameters #### Path Parameters None #### Query Parameters None ### Request Example None ### Response #### Success Response (200) - **left** (int) - The left pixel coordinate. #### Response Example ```json { "left": 100 } ``` ``` -------------------------------- ### GifDrawable Configuration Methods Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-18.html Methods for configuring GifDrawable instances. ```APIDOC ## setAutoMirrored(boolean) ### Description Sets whether the drawable should be mirrored in RTL layouts. ### Parameters - **mirrored** (boolean) - Required - Whether to mirror the drawable. ## setBounds(Rect) ### Description Sets the bounding rectangle for the drawable. ### Parameters - **bounds** (Rect) - Required - The rectangle defining the bounds. ## setCallback(Drawable.Callback) ### Description Sets the callback for the drawable. ### Parameters - **cb** (Drawable.Callback) - Required - The callback to set. ## setChangingConfigurations(int) ### Description Sets the bitmask of configuration changes that this drawable supports. ### Parameters - **configs** (int) - Required - The configuration bitmask. ``` -------------------------------- ### Get Pixels of Current Frame Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Copies the pixel data of the current frame into the provided array. Each pixel is a packed integer representing its color. ```java void getPixels(@NonNull() Array pixels) ``` -------------------------------- ### Get Audio Session ID Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/pl/droidsonroids/gif/GifDrawable.html Returns the audio session ID. Since GIFs do not contain sound, this method always returns 0. ```java int getAudioSessionId() ``` -------------------------------- ### GifDrawable Initialization Source: https://www.javadoc.io/doc/pl.droidsonroids.gif/android-gif-drawable/latest/index-files/index-22.html Methods for configuring GifDrawable instances during initialization. ```APIDOC ## with(GifDrawable) ### Description Sets a drawable to be reused when creating a new one. ### Parameters - **GifDrawable** (object) - Required - The existing drawable instance to be reused. ### Usage Available in `pl.droidsonroids.gif.GifDrawableInit` and `pl.droidsonroids.gif.GifDrawableBuilder`. ```