mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-04-25 10:18:44 +02:00
Merge pull request #37 from bjaskj/master
Made ratingConditionsHaveBeenMet() public.
This commit is contained in:
@@ -292,6 +292,10 @@ The `reviewURLString()` function is the review URL string, generated by substitu
|
|||||||
|
|
||||||
Armchair.rateApp()
|
Armchair.rateApp()
|
||||||
|
|
||||||
|
`ratingConditionsHaveBeenMet()` function is returning true if conditions to show rating has been met.
|
||||||
|
|
||||||
|
Armchair.ratingConditionsHaveBeenMet() -> Bool
|
||||||
|
|
||||||
##### iOS Only Functions
|
##### iOS Only Functions
|
||||||
|
|
||||||
`closeModalPanel()` tells Armchair to immediately close any open rating modal panels for instance, a `SKStoreProductViewController`.
|
`closeModalPanel()` tells Armchair to immediately close any open rating modal panels for instance, a `SKStoreProductViewController`.
|
||||||
|
|||||||
@@ -472,6 +472,13 @@ public func showPrompt(shouldPrompt: ArmchairShouldPromptClosure) {
|
|||||||
Manager.defaultManager.showPrompt(shouldPrompt)
|
Manager.defaultManager.showPrompt(shouldPrompt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns true if rating conditions have been met already and rating prompt is likely to be shown.
|
||||||
|
*/
|
||||||
|
public func ratingConditionsHaveBeenMet() -> Bool {
|
||||||
|
return Manager.defaultManager.ratingConditionsHaveBeenMet()
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: Misc
|
// MARK: Misc
|
||||||
/*
|
/*
|
||||||
* This is the review URL string, generated by substituting the appID, affiliate code
|
* This is the review URL string, generated by substituting the appID, affiliate code
|
||||||
|
|||||||
Reference in New Issue
Block a user