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

ShareHandler

interface ShareHandler

A class through which all shared data is directed.

Since
8.30

Types

FileShareInfo

open class FileShareInfo : Parcelable

This class holds the information for files being shared or saved. fileName is the full file path on the device. displayName is the file name of the file to be shared without the path. (In the case of PDFs, the displayName is different from the name on fileName.) mimeType is the mime type of the file that is 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, imagePath: 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 © 2018 by SAS Institute Inc., Cary, NC, USA. All Rights Reserved.