SASReportObjectDelegate

public protocol SASReportObjectDelegate : AnyObject

Report Object Delegate

Since

since 26.0.0
  • This report object is busy. This could be loading data, or waiting for a network request.

    Since

    since 26.0.0

    Declaration

    Swift

    func reportObjectIsBusy(object: SASReportObject)
  • This report has finished its task that made it busy and may be safely used

    Since

    since 26.0.0

    Declaration

    Swift

    func reportObjectIsReady(object: SASReportObject)
  • The data has changed on this report object.

    Since

    since 26.0.0

    Declaration

    Swift

    func reportObjectDataChanged(object: SASReportObject)
  • the report object needs to show a data tip. This is the delegate’s opportunity to accept the data tip from the report, as well as handling the user’s selection.

    Currently, if report objects are being presented by the loadReportObject API, it is up to the application to provide a data tip implementation. There is no default implementation.

    Since

    since 26.1.0

    Declaration

    Swift

    func willHandleDataTip(object: SASReportObject, info: SASDataTip) -> Bool

    Parameters

    object

    The SASReportObject that is requesting the data tip.

    info

    SASDataTip instance describing the user’s selection

    Return Value

    Bool indicating if the delegate will handle the data tip or not. true indicates that the delegate will handle the data tip. false indicates that the data tip should be displayed.

  • The delegate should handle the data tip from this object.

    This method will only be called if willHandleDataTip returns true.

    Since

    since 26.1.0

    Declaration

    Swift

    func showDataTip(object: SASReportObject, info: SASDataTip)

    Parameters

    object

    The SASReportObject that is requesting the data tip.

    info

    SASDataTip instance describing the user’s selection

  • The report object data tip needs to be hidden. This can occur for various reasons such as the user tapped in the background of a visual to trigger a data tip dismiss.

    this method will only be called if willHandleDataTip returns true

    Since

    since 26.1.0

    Declaration

    Swift

    func hideDataTip(object: SASReportObject, info: SASDataTip)

    Parameters

    object

    The SASReportObject that is requesting the data tip dismiss.

    info

    The data tip that needs to be hidden.