Added in API level 37

OperationTarget


abstract class OperationTarget
kotlin.Any
   ↳ android.os.storage.operations.targets.OperationTarget

Abstract base class for the target of a file operation.

Summary

Public methods
abstract String

Returns a human-readable representation of this target.

Public methods

toString

Added in API level 37
abstract fun toString(): String

Returns a human-readable representation of this target.

Concrete implementations should return a string that describes the target in a way that is useful for debugging and logging (e.g., including key paths or identifiers).

Note: This string is intended for diagnostic purposes only and should not be parsed or relied upon as a stable identifier for the files or the target configuration.

Return
String This value cannot be null.