Package com.gluonhq.attach.storereview
Interface StoreReviewService
-
- All Known Implementing Classes:
AndroidStoreReviewService
,IOSStoreReviewService
public interface StoreReviewService
The StoreReviewService provides a way to request store ratings and reviews from users.Example
StoreReviewService.create().ifPresent(service -> { service.requestStoreReview(); });
- Since:
- 4.0.15
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.util.Optional<StoreReviewService>
create()
Returns an instance ofStoreReviewService
.void
requestStoreReview(java.lang.String fallbackURL)
Prompts the user with a request to rate and do a review of the current app in the store, without leaving the app Warning: on iOS it can be used only up to three times a year for the same app and version, and also the user could have disabled it from Settings
-
-
-
Method Detail
-
create
static java.util.Optional<StoreReviewService> create()
Returns an instance ofStoreReviewService
.- Returns:
- An instance of
StoreReviewService
.
-
requestStoreReview
void requestStoreReview(java.lang.String fallbackURL)
Prompts the user with a request to rate and do a review of the current app in the store, without leaving the app Warning: on iOS it can be used only up to three times a year for the same app and version, and also the user could have disabled it from Settings- Parameters:
fallbackURL
- A string with a URL to access directly the store to leave a review, in case the request failed
-
-