ShareUtils

object ShareUtils : Base<ShareUtils>

Utility to share text and files with other apps

Functions

Link copied to clipboard
fun shareFile(    activity: Activity,     file: File,     @StringOrStringRes chooserTitle: Any = R.string.share,     @Size(min = 1, max = 100) case: String = Event.ParameterValue.N_A)

Share a file (image, video, ect.) with other apps.

Link copied to clipboard
fun shareText(    activity: Activity,     @StringOrStringRes content: Any,     @StringOrStringRes chooserTitle: Any = R.string.share,     @Size(min = 1, max = 100) case: String = Event.ParameterValue.N_A)

Share text with other apps.

Properties

Link copied to clipboard
var fileProviderAuthority: String

Provider to share files

Link copied to clipboard
var firebaseAnalyticsEnabled: Boolean

Determines if the event log in Firebase Analytics is enabled for the class instance, for the event log, the static property of the companion object firebaseAnalyticsInstance must also be assigned, if that property is null, no events will be logged, since what is required.