5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//
// HRatePromptHandler.h
// SteveandMaggieToyApp
//
// Created by Katarzyna Kalinowska-Górska on 10/09/2020.
//
#ifndef HRatePromptHandler_h
#define HRatePromptHandler_h
#include <stdio.h>
// Only after we've hit CounterValue in our Counter, presentRatePromptIfApplicable will take effect.
#define HRatePromptHandler_CounterValue 3 // This many countUp events are necessary to show the prompt -> place them when the app is open, when a game is won etc. - according to your needs
class HRatePromptHandler {
public:
static void countUp();
static bool presentRatePromptIfApplicable();
private:
static const char* RATE_PROMPT_HANDLER_COUNT_UD_KEY;
static int getCounterValue();
static void setCounterValue(int value);
};
#endif /* HRatePromptHandler_h */
|