19 lines
529 B
Mathematica
19 lines
529 B
Mathematica
|
#if PLATFORM_IOS
|
||
|
|
||
|
// This definition is here only for compiler to know about selector requestReview
|
||
|
@interface UnityStoreReviewController
|
||
|
+ requestReview;
|
||
|
@end
|
||
|
|
||
|
bool UnityRequestStoreReview()
|
||
|
{
|
||
|
Class classSKStoreReviewController = NSClassFromString(@"SKStoreReviewController");
|
||
|
if (!classSKStoreReviewController || ![classSKStoreReviewController respondsToSelector: @selector(requestReview)])
|
||
|
return false;
|
||
|
|
||
|
[classSKStoreReviewController performSelector: @selector(requestReview)];
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
#endif
|