PerfettoSdkHandshake.LibrarySource


sealed class PerfettoSdkHandshake.LibrarySource


Provides means to sideload Perfetto SDK native binaries

Summary

Public companion functions

PerfettoSdkHandshake.LibrarySource
aarLibrarySource(
    aarFile: File,
    tempDirectory: File,
    moveLibFileFromTmpDirToAppDir: (srcFile: File, dstFile: File) -> Unit
)

Provides means to sideload Perfetto SDK native binaries with a library AAR used as a source

PerfettoSdkHandshake.LibrarySource
apkLibrarySource(
    apkFile: File,
    tempDirectory: File,
    moveLibFileFromTmpDirToAppDir: (srcFile: File, dstFile: File) -> Unit
)

Provides means to sideload Perfetto SDK native binaries with an APK containing the library used as a source

Protected constructors

Public companion functions

aarLibrarySource

Added in 1.0.0
fun aarLibrarySource(
    aarFile: File,
    tempDirectory: File,
    moveLibFileFromTmpDirToAppDir: (srcFile: File, dstFile: File) -> Unit
): PerfettoSdkHandshake.LibrarySource

Provides means to sideload Perfetto SDK native binaries with a library AAR used as a source

Parameters
aarFile: File

an AAR file containing libtracing_perfetto.so

tempDirectory: File

a directory directly accessible to the caller process (used for extraction of the binaries from the zip)

moveLibFileFromTmpDirToAppDir: (srcFile: File, dstFile: File) -> Unit

a function capable of moving the binary file from the tempDirectory to an app accessible folder

apkLibrarySource

Added in 1.0.0
fun apkLibrarySource(
    apkFile: File,
    tempDirectory: File,
    moveLibFileFromTmpDirToAppDir: (srcFile: File, dstFile: File) -> Unit
): PerfettoSdkHandshake.LibrarySource

Provides means to sideload Perfetto SDK native binaries with an APK containing the library used as a source

Parameters
apkFile: File

an APK file containing libtracing_perfetto.so

tempDirectory: File

a directory directly accessible to the caller process (used for extraction of the binaries from the zip)

moveLibFileFromTmpDirToAppDir: (srcFile: File, dstFile: File) -> Unit

a function capable of moving the binary file from the tempDirectory to an app accessible folder

Protected constructors

LibrarySource

protected LibrarySource()