toolkit / com.sas.android.visualanalytics.sdk / ShareHandler

ShareHandler

interface ShareHandler

A class through which all shared data is directed.

Since
8.30

Types

FileShareInfo

class FileShareInfo : Parcelable

This class holds the information for files being shared or saved.

Functions

saveFile

abstract fun saveFile(activity: FragmentActivity, saveInfo: FileShareInfo): Unit

Save the contents of the file to a location outside the app's internal storage.

shareFile

abstract fun shareFile(context: Context, shareInfo: FileShareInfo): Unit

Share a file to an external app for viewing.

shareMail

abstract fun shareMail(context: Context, subject: String, contents: CharSequence, imagePaths: List<String>?): Unit

Share information with an external source by email.

shareOrSaveFile

abstract fun shareOrSaveFile(activity: FragmentActivity, shareInfo: FileShareInfo): Unit

Prompt the user to save a file or share it to an external app for viewing.

Copyright © 2019 by SAS Institute Inc., Cary, NC, USA. All Rights Reserved.