Get started

Prerequisite

Before starting DriveKit Permissions Utils UI integration, make sure that you have initialized Common UI SDKs.

Integration

The Permissions Utils UI SDK is available on Cocoapods master repo.
To access the framework in the repository, add the following lines to your Podfile:
Podfile
1
target 'my-target' do
2
pod 'DriveKitPermissionsUtilsUI'
3
end
Copied!
Then, run pod install
On a Github repository, you can find a demo app (for iOS and Android) and the source code of Permissions Utils UI that you can use as an example.

Initialization

An initialization phase is required to use the features included in the Permissions Utils module. In the application's AppDelegate file, import DriveKitPermissionsUtilsUI:
1
import DriveKitPermissionsUtilsUI
Copied!
Then, to initialize the Permissions Utils module in your app, you must call the initialization method in didFinishLaunchingWithOptions method of your AppDelegate:
1
import DriveKitCoreModule
2
import DriveKitCommonUI
3
import DriveKitPermissionsUtilsUI
4
5
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
6
DriveKitUI.shared.initialize()
7
DriveKitPermissionsUtilsUI.shared.initialize()
8
...
9
}
Copied!
Last modified 1yr ago
Export as PDF
Copy link