No Description

FIRInstanceID+Testing.h 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright 2019 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 "FIRInstanceID+Private.h"
  17. #import "FIRInstanceID.h"
  18. #import "FIRInstanceIDKeyPairStore.h"
  19. #import "FIRInstanceIDTokenManager.h"
  20. @interface FIRInstanceID (Testing)
  21. @property(nonatomic, readwrite, strong) FIRInstanceIDTokenManager *tokenManager;
  22. @property(nonatomic, readwrite, strong) FIRInstanceIDKeyPairStore *keyPairStore;
  23. @property(nonatomic, readwrite, copy) NSString *fcmSenderID;
  24. /**
  25. * Private initializer.
  26. */
  27. - (instancetype)initPrivately;
  28. /**
  29. * Actually makes InstanceID instantiate both the IID and Token-related subsystems.
  30. */
  31. - (void)start;
  32. /**
  33. * Without checking any caches etc, always attempts to fetch the default token (unless a fetch
  34. * is already in progress.
  35. */
  36. - (void)fetchDefaultToken;
  37. + (int64_t)maxRetryCountForDefaultToken;
  38. + (int64_t)minIntervalForDefaultTokenRetry;
  39. + (int64_t)maxRetryIntervalForDefaultTokenInSeconds;
  40. @end