create

fun create(storageDir: File, context: Context): PersonalData

Creates an instance of PersonalData that stores data in the specified directory.

Important: This is a Public Preview API. It may be changed or removed at any time.

Return

An instance of PersonalData.

Parameters

storageDir

The directory where the personal data will be stored.

context

The Context holding information about an application environment.