FIRDynamicLinkNetworking+Private.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright 2018 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "FirebaseDynamicLinks/Sources/FIRDynamicLinkNetworking.h"
  17. NS_ASSUME_NONNULL_BEGIN
  18. /** The key for the DL URL. */
  19. FOUNDATION_EXPORT NSString *const kFDLResolvedLinkDeepLinkURLKey;
  20. /** The key for the mininum iOS app version. */
  21. FOUNDATION_EXPORT NSString *const kFDLResolvedLinkMinAppVersionKey;
  22. // Private interface for testing.
  23. @interface FIRDynamicLinkNetworking ()
  24. /**
  25. * @method executeOnePlatformRequest:forURL:eventString:completionHandler:
  26. * @abstract Creates and sends a OnePlatform HTTP request. Also adds the necessary header.
  27. * @param requestBody The body of the request. Values may be added to this.
  28. * @param requestURLString The URL to which to send the request.
  29. * @param handler A block to be executed upon completion. Guaranteed to be called, but not
  30. * always on the main thread.
  31. */
  32. - (void)executeOnePlatformRequest:(NSDictionary *)requestBody
  33. forURL:(NSString *)requestURLString
  34. completionHandler:(FIRNetworkRequestCompletionHandler)handler;
  35. @end
  36. /** Encodes the API key in a query parameter string. */
  37. NSString *_Nullable FIRDynamicLinkAPIKeyParameter(NSString *apiKey);
  38. /** Creates and returns an NSData object from an NSDictionary along with any error. */
  39. NSData *_Nullable FIRDataWithDictionary(NSDictionary *dictionary, NSError **_Nullable error);
  40. NS_ASSUME_NONNULL_END