doc: fix incorrect code examples for universal / deep linking

This commit is contained in:
François Benaiteau 2019-05-22 14:08:37 +02:00 committed by Saúl Ibarra Corretgé
parent 700051f809
commit 61b66e0edf
1 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ Leaves the currently active conference.
#### Universal / deep linking #### Universal / deep linking
In order to support Universal / deep linking, `JitsiMeetView` offers 2 class In order to support Universal / deep linking, `JitsiMeet` offers 2 class
methods that you app's delegate should call in order for the app to follow those methods that you app's delegate should call in order for the app to follow those
links. links.
@ -104,7 +104,7 @@ is useful when the host application uses other SDKs which also use linking.
continueUserActivity:(NSUserActivity *)userActivity continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler
{ {
return [JitsiMeetView application:application return [[JitsiMeet sharedInstance] application:application
continueUserActivity:userActivity continueUserActivity:userActivity
restorationHandler:restorationHandler]; restorationHandler:restorationHandler];
} }
@ -117,7 +117,7 @@ And also one of the following:
- (BOOL)application:(UIApplication *)app - (BOOL)application:(UIApplication *)app
openURL:(NSURL *)url openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options { options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
return [JitsiMeetView application:app return [[JitsiMeet sharedInstance] application:app
openURL:url openURL:url
options: options]; options: options];
} }