public static final class **MlImage.Internal** Advanced API access for `https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage`.

These APIs are useful for other infrastructures, for example, acquiring extra reference
count for `https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage`. However, an App developer should avoid using the following APIs.

APIs inside are treated as internal APIs which are subject to change.

<br />

<br />

### Public Methods

|---|---|
| void | [acquire](https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage.Internal#acquire())() Acquires a reference on this `https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage`. |

### Inherited Methods

From class java.lang.Object

|---|---|
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public void
**acquire**
()

Acquires a reference on this `https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage`. This will increase the reference count by 1.

This method is more useful for image consumer to acquire a reference so image resource
will not be closed accidentally. As image creator, normal developer doesn't need to call this
method.

The reference count is 1 when `https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage` is created. Developer can call `https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage#close()` to indicate it doesn't need this `https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage` anymore.

<br />

<br />

##### See Also

- `https://developers.google.com/edge/api/tflite/java/com/google/android/odml/image/MlImage#close()`