Configure the URL handler
Use ourGleapDelegate protocol. This protocol includes the method that handles URL loading:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GleapDelegate protocol. This protocol includes the method that handles URL loading:
import Foundation
import UIKit
import Gleap
// Add the GleapDelegate protocol to your view controller
class DemoViewController: UIViewController, GleapDelegate {
override func viewDidLoad() {
// Assign self to the delegate
Gleap.sharedInstance().delegate = self;
}
func openExternalLink(_ url: URL) {
// Handle url
}
}