Link

toolkit / com.sas.android.visualanalytics.sdk.model / Server / subscribe

subscribe

fun subscribe(descriptors: List<ReportDescriptor>, updateIfSubscribed: Boolean, onSubscribeComplete: ((Server.Result) -> Unit)? = null): Unit

Subscribe to the given reports.

Parameters

descriptors -

    the reports to subscribe to.

updateIfSubscribed -

    Indicates whether to update the report if it is already subscribed.

onSubscribeComplete -

    an optional callback invoked when a subscription process for a report has completed
    (successfully or otherwise); called once for each report.