# PdfPageObjectType

Added in[version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in[S Extensions 18](https://developer.android.com/sdkExtensions)  
Summary:[Constants](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObjectType#constants)\|[Methods](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObjectType#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObjectType#inhmethods)  

# PdfPageObjectType

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/graphics/pdf/component/PdfPageObjectType "View this page in Kotlin")\|Java

`
public

final

class
PdfPageObjectType
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|--------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.graphics.pdf.component.PdfPageObjectType |

<br />

*** ** * ** ***

This class holds the set of constants representing the types of a PDF page objects.

## Summary

|                                                                                  ### Constants                                                                                  ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [IMAGE](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObjectType#IMAGE) Represents an image page object                                  |
| `int` | [PATH](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObjectType#PATH) Represents a path page object                                      |
| `int` | [TEXT](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObjectType#TEXT) Represents a text page object                                      |
| `int` | [UNKNOWN](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObjectType#UNKNOWN) Represents the type of page object that cannot be determined |

|                                                                                                  ### Public methods                                                                                                   ||
|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static boolean` | ` `[isValidType](https://developer.android.com/reference/android/graphics/pdf/component/PdfPageObjectType#isValidType(int))`(int type) ` Checks if the given type is a valid PDF page object type. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### IMAGE

Added in[version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in[S Extensions 18](https://developer.android.com/sdkExtensions)  

```
public static final int IMAGE
```

Represents an image page object

<br />

Constant Value: 3 (0x00000003)  

### PATH

Added in[version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in[S Extensions 18](https://developer.android.com/sdkExtensions)  

```
public static final int PATH
```

Represents a path page object

<br />

Constant Value: 2 (0x00000002)  

### TEXT

Added in[version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in[S Extensions 18](https://developer.android.com/sdkExtensions)  

```
public static final int TEXT
```

Represents a text page object

<br />

Constant Value: 1 (0x00000001)  

### UNKNOWN

Added in[version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in[S Extensions 18](https://developer.android.com/sdkExtensions)  

```
public static final int UNKNOWN
```

Represents the type of page object that cannot be determined

<br />

Constant Value: 0 (0x00000000)

## Public methods

### isValidType

Added in[version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  
Also in[S Extensions 18](https://developer.android.com/sdkExtensions)  

```
public static boolean isValidType (int type)
```

Checks if the given type is a valid PDF page object type.

<br />

|                Parameters                ||
|--------|----------------------------------|
| `type` | `int`: The type to check. <br /> |

|                            Returns                             ||
|-----------|-----------------------------------------------------|
| `boolean` | `true`if the type is valid,`false`otherwise. <br /> |