SASManager

@Singleton
class SASManager

Provides the main entry point into SAS Visual Analytics functionality.

Since

8.30

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class Result

Encapsulates the result of an attempt to create a connection.

Properties

Link copied to clipboard

Gets all SAS Visual Analytics Servers for which a connection has been established.

Functions

Link copied to clipboard
fun create(descriptor: ConnectionDescriptor, reports: List<ReportDescriptor>?, onConnectionComplete: (SASManager.Result) -> Unit? = null, onSubscribeComplete: (Server.Result) -> Unit? = null)

Creates a connections to a SAS Visual Analytics server.

Link copied to clipboard
fun createFromJson(input: Reader, context: Context, onConnectionComplete: (SASManager.Result) -> Unit? = null, onSubscribeComplete: (Server.Result) -> Unit? = null)

Creates one or more connections to SAS Visual Analytics servers defined in JSON.

Link copied to clipboard
suspend fun createSuspended(descriptor: ConnectionDescriptor, reports: List<ReportDescriptor>?, timeoutMillis: Long = -1): Pair<Server, List<Report>>

Creates a connections to a SAS Visual Analytics server and returns the results, from a coroutine context.

Link copied to clipboard
fun getReport(descriptor: ReportDescriptor): Report?

Gets the subscribed Report, if any, for the given ReportDescriptor.

Gets the subscribed Report, if any, with the defined ID.

Link copied to clipboard

Gets the ReportObjectProvider to access report objects within a SAS Visual Analytics report.

Link copied to clipboard
fun openReport(report: Report, startingActivity: FragmentActivity, startSection: String? = null, extras: Bundle? = null)

Performs any required authorization/permission checks, and then opens the given report with the Intent returned from SASManagerContext.viewReportHandler.

Link copied to clipboard
fun remove(server: Server): Boolean

Removes the connection associated with the given Server and invalidates the object for future use.