MlImage.Internal

Spark icon
  • MlImage.Internal provides advanced API access for MlImage, primarily for other infrastructures.

  • App developers should generally avoid using the APIs within MlImage.Internal as they are internal and subject to change.

  • The acquire() method increases the reference count of an MlImage, useful for image consumers to prevent accidental closing.

public static final class MlImage.Internal extends Object

Advanced API access for MlImage.

These APIs are useful for other infrastructures, for example, acquiring extra reference count for MlImage. However, an App developer should avoid using the following APIs.

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

Public Method Summary

void
acquire()
Acquires a reference on this MlImage.

Inherited Method Summary

Public Methods

public void acquire ()

Acquires a reference on this 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 MlImage is created. Developer can call MlImage.close() to indicate it doesn't need this MlImage anymore.

See Also
Morty Proxy This is a proxified and sanitized view of the page, visit original site.