public final class

ZoomView.ZoomScroll

extends java.lang.Object

 java.lang.Object

↳androidx.pdf.widget.ZoomView.ZoomScroll

Overview

The position (zoom and scroll) of the underlying view. Also indicates whether this position is stable (i.e. not in the middle of a user gesture).

An immutable object.

Summary

Fields
public final intscrollX

public final intscrollY

public final booleanstable

public final floatzoom

Constructors
publicZoomScroll(float zoom, int scrollX, int scrollY, boolean stable)

Methods
public BundleasBundle()

Save and return ZoomScroll position in a Bundle object.

public booleanequals(java.lang.Object obj)

public static ZoomView.ZoomScrollfromBundle(Bundle bundle)

Get ZoomScroll position from bundle.

public inthashCode()

public java.lang.StringtoString()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Fields

public final float zoom

public final int scrollX

public final int scrollY

public final boolean stable

Constructors

public ZoomScroll(float zoom, int scrollX, int scrollY, boolean stable)

Methods

public static ZoomView.ZoomScroll fromBundle(Bundle bundle)

Get ZoomScroll position from bundle.

public java.lang.String toString()

public Bundle asBundle()

Save and return ZoomScroll position in a Bundle object.

public boolean equals(java.lang.Object obj)

public int hashCode()