From 688f8106c69ce8b129ae70ef9a925b09cccf6671 Mon Sep 17 00:00:00 2001 From: artempolivodskyi Date: Thu, 22 Dec 2022 14:21:22 +0200 Subject: [PATCH] docs: change naming for function 'handler' and 'setDefault' --- _includes/ios/users.md | 8 ++++---- _includes/parse-server/push-notifications-ios.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_includes/ios/users.md b/_includes/ios/users.md index 47a0b97ec..2680d1604 100644 --- a/_includes/ios/users.md +++ b/_includes/ios/users.md @@ -360,7 +360,7 @@ To help ensure that your users' data is secure by default, you can set a default [PFACL setDefaultACL:defaultACL withAccessForCurrentUser:YES]; ``` ```swift -PFACL.setDefaultACL(defaultACL, withAccessForCurrentUser:true) +PFACL.setDefault(defaultACL, withAccessForCurrentUser:true) ``` @@ -377,7 +377,7 @@ PFACL *defaultACL = [PFACL ACL]; ```swift var defaultACL = PFACL.ACL() defaultACL.setPublicReadAccess(true) -PFACL.setDefaultACL(defaultACL, withAccessForCurrentUser:true) +PFACL.setDefault(defaultACL, withAccessForCurrentUser:true) ``` @@ -388,7 +388,7 @@ For an app like Dropbox, where a user's data is only accessible by the user itse [PFACL setDefaultACL:[PFACL ACL] withAccessForCurrentUser:YES]; ``` ```swift -PFACL.setDefaultACL(PFACL.ACL(), withAccessForCurrentUser:true) +PFACL.setDefault(PFACL.ACL(), withAccessForCurrentUser:true) ``` @@ -399,7 +399,7 @@ For an application that logs data to Parse but doesn't provide any user access t [PFACL setDefaultACL:[PFACL ACL] withAccessForCurrentUser:NO]; ``` ```swift -PFACL.setDefaultACL(PFACL.ACL(), withAccessForCurrentUser:false) +PFACL.setDefault(PFACL.ACL(), withAccessForCurrentUser:false) ``` diff --git a/_includes/parse-server/push-notifications-ios.md b/_includes/parse-server/push-notifications-ios.md index b82df42b9..fe724c6be 100644 --- a/_includes/parse-server/push-notifications-ios.md +++ b/_includes/parse-server/push-notifications-ios.md @@ -56,7 +56,7 @@ func application(application: UIApplication, didFailToRegisterForRemoteNotificat } func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { - PFPush.handlePush(userInfo) + PFPush.handle(userInfo) } ```