We strongly recommend to have one and the only one MPS instance per MPS endpoint and retain it for the further usage.
var mps: MPS?
func start() {
mps = MPS(url: url, site: site, options: options)
}
We strongly recommend to have a MPSPage instance retained while the correlated views are alive. It can improve the SDK performance.
var page: MPSPage?
override func viewDidLoad() {
super.viewDidLoad()
let params = MPSPageParameters(path: "page")
page = mps.requestPageObject(mpsParams: params)
}