project_files/HedgewarsMobile/Classes/Appirater/Appirater.h
author Wuzzy <almikes@aol.com>
Tue, 02 May 2017 21:16:07 +0200
changeset 12390 c051ac2544f2
parent 11309 402baa6d4f64
permissions -rwxr-xr-x
Add note in Diver scenario that jetpack only has 50% fuel
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11309
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     1
/*
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     2
 This file is part of Appirater.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     3
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     4
 Copyright (c) 2012, Arash Payan
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     5
 All rights reserved.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     6
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     7
 Permission is hereby granted, free of charge, to any person
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     8
 obtaining a copy of this software and associated documentation
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
     9
 files (the "Software"), to deal in the Software without
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    10
 restriction, including without limitation the rights to use,
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    11
 copy, modify, merge, publish, distribute, sublicense, and/or sell
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    12
 copies of the Software, and to permit persons to whom the
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    13
 Software is furnished to do so, subject to the following
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    14
 conditions:
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    15
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    16
 The above copyright notice and this permission notice shall be
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    17
 included in all copies or substantial portions of the Software.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    18
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    19
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    20
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    21
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    22
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    23
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    24
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    25
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    26
 OTHER DEALINGS IN THE SOFTWARE.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    27
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    28
/*
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    29
 * Appirater.h
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    30
 * appirater
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    31
 *
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    32
 * Created by Arash Payan on 9/5/09.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    33
 * http://arashpayan.com
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    34
 * Copyright 2012 Arash Payan. All rights reserved.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    35
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    36
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    37
#import <Foundation/Foundation.h>
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    38
#import "AppiraterDelegate.h"
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    39
#import <StoreKit/StoreKit.h>
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    40
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    41
extern NSString *const kAppiraterFirstUseDate;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    42
extern NSString *const kAppiraterUseCount;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    43
extern NSString *const kAppiraterSignificantEventCount;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    44
extern NSString *const kAppiraterCurrentVersion;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    45
extern NSString *const kAppiraterRatedCurrentVersion;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    46
extern NSString *const kAppiraterDeclinedToRate;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    47
extern NSString *const kAppiraterReminderRequestDate;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    48
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    49
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    50
 Your localized app's name.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    51
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    52
#define APPIRATER_LOCALIZED_APP_NAME    [[[NSBundle mainBundle] localizedInfoDictionary] objectForKey:@"CFBundleDisplayName"]
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    53
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    54
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    55
 Your app's name.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    56
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    57
#define APPIRATER_APP_NAME				APPIRATER_LOCALIZED_APP_NAME ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"]
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    58
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    59
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    60
 This is the message your users will see once they've passed the day+launches
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    61
 threshold.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    62
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    63
#define APPIRATER_LOCALIZED_MESSAGE     NSLocalizedStringFromTableInBundle(@"If you enjoy using %@, would you mind taking a moment to rate it? It won't take more than a minute. Thanks for your support!", @"AppiraterLocalizable", [Appirater bundle], nil)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    64
#define APPIRATER_MESSAGE				[NSString stringWithFormat:APPIRATER_LOCALIZED_MESSAGE, APPIRATER_APP_NAME]
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    65
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    66
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    67
 This is the title of the message alert that users will see.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    68
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    69
#define APPIRATER_LOCALIZED_MESSAGE_TITLE   NSLocalizedStringFromTableInBundle(@"Rate %@", @"AppiraterLocalizable", [Appirater bundle], nil)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    70
#define APPIRATER_MESSAGE_TITLE             [NSString stringWithFormat:APPIRATER_LOCALIZED_MESSAGE_TITLE, APPIRATER_APP_NAME]
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    71
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    72
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    73
 The text of the button that rejects reviewing the app.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    74
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    75
#define APPIRATER_CANCEL_BUTTON			NSLocalizedStringFromTableInBundle(@"No, Thanks", @"AppiraterLocalizable", [Appirater bundle], nil)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    76
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    77
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    78
 Text of button that will send user to app review page.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    79
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    80
#define APPIRATER_LOCALIZED_RATE_BUTTON NSLocalizedStringFromTableInBundle(@"Rate %@", @"AppiraterLocalizable", [Appirater bundle], nil)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    81
#define APPIRATER_RATE_BUTTON			[NSString stringWithFormat:APPIRATER_LOCALIZED_RATE_BUTTON, APPIRATER_APP_NAME]
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    82
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    83
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    84
 Text for button to remind the user to review later.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    85
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    86
#define APPIRATER_RATE_LATER			NSLocalizedStringFromTableInBundle(@"Remind me later", @"AppiraterLocalizable", [Appirater bundle], nil)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    87
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    88
@interface Appirater : NSObject <UIAlertViewDelegate, SKStoreProductViewControllerDelegate> {
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    89
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    90
	UIAlertView		*ratingAlert;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    91
}
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    92
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    93
@property(nonatomic, strong) UIAlertView *ratingAlert;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    94
@property(nonatomic) BOOL openInAppStore;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    95
#if __has_feature(objc_arc_weak)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    96
@property(nonatomic, weak) NSObject <AppiraterDelegate> *delegate;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    97
#else
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    98
@property(nonatomic, unsafe_unretained) NSObject <AppiraterDelegate> *delegate;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
    99
#endif
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   100
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   101
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   102
 Tells Appirater that the app has launched, and on devices that do NOT
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   103
 support multitasking, the 'uses' count will be incremented. You should
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   104
 call this method at the end of your application delegate's
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   105
 application:didFinishLaunchingWithOptions: method.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   106
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   107
 If the app has been used enough to be rated (and enough significant events),
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   108
 you can suppress the rating alert
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   109
 by passing NO for canPromptForRating. The rating alert will simply be postponed
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   110
 until it is called again with YES for canPromptForRating. The rating alert
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   111
 can also be triggered by appEnteredForeground: and userDidSignificantEvent:
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   112
 (as long as you pass YES for canPromptForRating in those methods).
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   113
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   114
+ (void)appLaunched:(BOOL)canPromptForRating;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   115
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   116
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   117
 Tells Appirater that the app was brought to the foreground on multitasking
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   118
 devices. You should call this method from the application delegate's
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   119
 applicationWillEnterForeground: method.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   120
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   121
 If the app has been used enough to be rated (and enough significant events),
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   122
 you can suppress the rating alert
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   123
 by passing NO for canPromptForRating. The rating alert will simply be postponed
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   124
 until it is called again with YES for canPromptForRating. The rating alert
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   125
 can also be triggered by appLaunched: and userDidSignificantEvent:
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   126
 (as long as you pass YES for canPromptForRating in those methods).
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   127
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   128
+ (void)appEnteredForeground:(BOOL)canPromptForRating;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   129
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   130
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   131
 Tells Appirater that the user performed a significant event. A significant
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   132
 event is whatever you want it to be. If you're app is used to make VoIP
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   133
 calls, then you might want to call this method whenever the user places
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   134
 a call. If it's a game, you might want to call this whenever the user
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   135
 beats a level boss.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   136
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   137
 If the user has performed enough significant events and used the app enough,
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   138
 you can suppress the rating alert by passing NO for canPromptForRating. The
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   139
 rating alert will simply be postponed until it is called again with YES for
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   140
 canPromptForRating. The rating alert can also be triggered by appLaunched:
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   141
 and appEnteredForeground: (as long as you pass YES for canPromptForRating
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   142
 in those methods).
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   143
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   144
+ (void)userDidSignificantEvent:(BOOL)canPromptForRating;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   145
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   146
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   147
 Tells Appirater to try and show the prompt (a rating alert). The prompt will be showed
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   148
 if there is connection available, the user hasn't declined to rate
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   149
 or hasn't rated current version.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   150
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   151
 You could call to show the prompt regardless Appirater settings,
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   152
 e.g., in case of some special event in your app.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   153
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   154
+ (void)tryToShowPrompt;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   155
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   156
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   157
 Tells Appirater to show the prompt (a rating alert).
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   158
 Similar to tryToShowPrompt, but without checks (the prompt is always displayed).
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   159
 Passing false will hide the rate later button on the prompt.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   160
  
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   161
 The only case where you should call this is if your app has an
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   162
 explicit "Rate this app" command somewhere. This is similar to rateApp,
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   163
 but instead of jumping to the review directly, an intermediary prompt is displayed.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   164
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   165
+ (void)forceShowPrompt:(BOOL)displayRateLaterButton;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   166
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   167
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   168
 Tells Appirater to open the App Store page where the user can specify a
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   169
 rating for the app. Also records the fact that this has happened, so the
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   170
 user won't be prompted again to rate the app.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   171
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   172
 The only case where you should call this directly is if your app has an
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   173
 explicit "Rate this app" command somewhere.  In all other cases, don't worry
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   174
 about calling this -- instead, just call the other functions listed above,
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   175
 and let Appirater handle the bookkeeping of deciding when to ask the user
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   176
 whether to rate the app.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   177
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   178
+ (void)rateApp;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   179
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   180
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   181
 Tells Appirater to immediately close any open rating modals (e.g. StoreKit rating VCs).
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   182
*/
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   183
+ (void)closeModal;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   184
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   185
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   186
 Asks Appirater if the user has declined to rate;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   187
*/
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   188
- (BOOL)userHasDeclinedToRate;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   189
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   190
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   191
 Asks Appirater if the user has rated the current version.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   192
 Note that this is not a guarantee that the user has actually rated the app in the 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   193
 app store, but they've just clicked the rate button on the Appirater dialog. 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   194
*/
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   195
- (BOOL)userHasRatedCurrentVersion;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   196
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   197
@end
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   198
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   199
@interface Appirater(Configuration)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   200
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   201
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   202
 Set your Apple generated software id here.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   203
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   204
+ (void) setAppId:(NSString*)appId;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   205
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   206
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   207
 Users will need to have the same version of your app installed for this many
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   208
 days before they will be prompted to rate it.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   209
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   210
+ (void) setDaysUntilPrompt:(double)value;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   211
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   212
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   213
 An example of a 'use' would be if the user launched the app. Bringing the app
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   214
 into the foreground (on devices that support it) would also be considered
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   215
 a 'use'. You tell Appirater about these events using the two methods:
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   216
 [Appirater appLaunched:]
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   217
 [Appirater appEnteredForeground:]
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   218
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   219
 Users need to 'use' the same version of the app this many times before
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   220
 before they will be prompted to rate it.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   221
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   222
+ (void) setUsesUntilPrompt:(NSInteger)value;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   223
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   224
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   225
 A significant event can be anything you want to be in your app. In a
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   226
 telephone app, a significant event might be placing or receiving a call.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   227
 In a game, it might be beating a level or a boss. This is just another
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   228
 layer of filtering that can be used to make sure that only the most
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   229
 loyal of your users are being prompted to rate you on the app store.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   230
 If you leave this at a value of -1, then this won't be a criterion
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   231
 used for rating. To tell Appirater that the user has performed
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   232
 a significant event, call the method:
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   233
 [Appirater userDidSignificantEvent:];
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   234
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   235
+ (void) setSignificantEventsUntilPrompt:(NSInteger)value;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   236
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   237
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   238
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   239
 Once the rating alert is presented to the user, they might select
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   240
 'Remind me later'. This value specifies how long (in days) Appirater
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   241
 will wait before reminding them.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   242
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   243
+ (void) setTimeBeforeReminding:(double)value;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   244
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   245
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   246
 Set customized title for alert view.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   247
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   248
+ (void) setCustomAlertTitle:(NSString *)title;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   249
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   250
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   251
 Set customized message for alert view.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   252
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   253
+ (void) setCustomAlertMessage:(NSString *)message;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   254
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   255
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   256
 Set customized cancel button title for alert view.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   257
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   258
+ (void) setCustomAlertCancelButtonTitle:(NSString *)cancelTitle;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   259
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   260
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   261
 Set customized rate button title for alert view.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   262
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   263
+ (void) setCustomAlertRateButtonTitle:(NSString *)rateTitle;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   264
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   265
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   266
 Set customized rate later button title for alert view.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   267
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   268
+ (void) setCustomAlertRateLaterButtonTitle:(NSString *)rateLaterTitle;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   269
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   270
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   271
 'YES' will show the Appirater alert everytime. Useful for testing how your message
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   272
 looks and making sure the link to your app's review page works.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   273
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   274
+ (void) setDebug:(BOOL)debug;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   275
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   276
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   277
 Set the delegate if you want to know when Appirater does something
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   278
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   279
+ (void)setDelegate:(id<AppiraterDelegate>)delegate;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   280
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   281
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   282
 Set whether or not Appirater uses animation (currently respected when pushing modal StoreKit rating VCs).
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   283
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   284
+ (void)setUsesAnimation:(BOOL)animation;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   285
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   286
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   287
 If set to YES, Appirater will open App Store link (instead of SKStoreProductViewController on iOS 6). Default YES.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   288
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   289
+ (void)setOpenInAppStore:(BOOL)openInAppStore;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   290
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   291
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   292
 If set to YES, the main bundle will always be used to load localized strings.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   293
 Set this to YES if you have provided your own custom localizations in AppiraterLocalizable.strings
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   294
 in your main bundle.  Default is NO.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   295
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   296
+ (void)setAlwaysUseMainBundle:(BOOL)useMainBundle;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   297
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   298
@end
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   299
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   300
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   301
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   302
 Methods in this interface are public out of necessity, but may change without notice
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   303
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   304
@interface Appirater(Unsafe)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   305
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   306
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   307
 The bundle localized strings will be loaded from.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   308
*/
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   309
+(NSBundle *)bundle;
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   310
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   311
@end
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   312
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   313
@interface Appirater(Deprecated)
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   314
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   315
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   316
 DEPRECATED: While still functional, it's better to use
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   317
 appLaunched:(BOOL)canPromptForRating instead.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   318
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   319
 Calls [Appirater appLaunched:YES]. See appLaunched: for details of functionality.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   320
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   321
+ (void)appLaunched __attribute__((deprecated)); 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   322
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   323
/*!
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   324
 DEPRECATED: While still functional, it's better to use
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   325
 tryToShowPrompt instead.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   326
 
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   327
 Calls [Appirater tryToShowPrompt]. See tryToShowPrompt for details of functionality.
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   328
 */
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   329
+ (void)showPrompt __attribute__((deprecated));
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   330
402baa6d4f64 - Appirater:
antonc27 <antonc27@mail.ru>
parents:
diff changeset
   331
@end