PerfettoHandshake.ExternalLibraryProvider


class PerfettoHandshake.ExternalLibraryProvider


Summary

Public constructors

ExternalLibraryProvider(
    libraryZip: File,
    tempDirectory: File,
    moveTempDirectoryFileToDestination: (tempFile: File, destinationFile: File) -> Unit
)

Public constructors

ExternalLibraryProvider

ExternalLibraryProvider(
    libraryZip: File,
    tempDirectory: File,
    moveTempDirectoryFileToDestination: (tempFile: File, destinationFile: File) -> Unit
)
Parameters
libraryZip: File
  • zip containing the library (e.g. tracing-perfetto-binary-.aar or an APK already containing the library)

tempDirectory: File
  • temporary folder where we can extract the library file from libraryZip; they need to be on the same device

moveTempDirectoryFileToDestination: (tempFile: File, destinationFile: File) -> Unit
  • function copying the library file from a location in tempDirectory to a location on the device.