PerfettoHandshake.ExternalLibraryProvider


public final class PerfettoHandshake.ExternalLibraryProvider


Summary

Public constructors

ExternalLibraryProvider(
    @NonNull File libraryZip,
    @NonNull File tempDirectory,
    @NonNull Function2<@NonNull File, @NonNull FileUnit> moveTempDirectoryFileToDestination
)

Public constructors

ExternalLibraryProvider

public ExternalLibraryProvider(
    @NonNull File libraryZip,
    @NonNull File tempDirectory,
    @NonNull Function2<@NonNull File, @NonNull FileUnit> moveTempDirectoryFileToDestination
)
Parameters
@NonNull File libraryZip
  • zip containing the library (e.g. tracing-perfetto-binary-.aar or an APK already containing the library)

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

@NonNull Function2<@NonNull File, @NonNull FileUnit> moveTempDirectoryFileToDestination
  • function copying the library file from a location in tempDirectory to a location on the device.