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
Modifier and TypeMethodDescriptionstatic Optional<StoreReviewService>
create()
Returns an instance ofStoreReviewService
.void
requestStoreReview
(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 Details
-
create
Returns an instance ofStoreReviewService
.- Returns:
- An instance of
StoreReviewService
.
-
requestStoreReview
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
-