SASReportNavigationDelegate
@objc
public protocol SASReportNavigationDelegate : NSObjectProtocol
Object that handles navigation actions for a SASReport.
in VA, this is set up in a report by adding actions to a visual. Actions can be:
- Page links. These can be links to normal pages, or to “hidden” details pages.
- Report links.
- External links.
Navigation must be provided by the code that owns the report.
Since
since 27.0.0-
Navigate to an external URL. This can be accomplished by redirecting to the OS to launch the link, or it may be done in-app via a web view internal to the app.
Since
since 27.0.0Declaration
Swift
@objc func navigate(url: URL, navigationDescriptor: SASReportNavigationDescriptor)
Parameters
url
The location to navigate to. This URL is complete with any parameters from the report.
descriptor
The navigation descriptior
-
Navigate to another report.
Since
since 27.0.0
Declaration
Swift
@objc func navigate(report: SASReportDescriptor, navigationDescriptor: SASReportNavigationDescriptor)
Parameters
report
The report to navigate to.
descriptor
The navigation description. This is the object that must be passed into the target report so that filters are applied from the navigation.
-
Navigation to another page in the current report
Since
since 27.0.0
Declaration
Swift
@objc func navigate(page: Int, navigationDescriptor: SASReportNavigationDescriptor)
Parameters
index
Index of the page that will be navigated to. This will be <0 if it is a “Hidden”/“Details” page.
descriptor
The navigation description object.