Xamarin-SmartRate 1.0.0.8

A library for simple implementation of smart ranking. The user will see a dialog every x time. If the user gives a high score, he will be transferred to the Google store. If he gives a low score, he will only receive a thank you toast message.

Install-Package Xamarin-SmartRate -Version 1.0.0.8
dotnet add package Xamarin-SmartRate --version 1.0.0.8
<PackageReference Include="Xamarin-SmartRate" Version="1.0.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin-SmartRate --version 1.0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

A library for simple implementation of smart ranking.
The user will see a dialog every x time.
If the user gives a high score, he will be transferred to the Google store. If he gives a low score, he will only receive a thank you toast message.

Usage

StepProgress Constructor:

// For continual calls - 
SmartRate.Rate(this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Ask me later"
        , "Never ask again"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.ParseColor("#2196F3")
        , 4
        , 48
        , 72
);

// For one time call
SmartRate.Rate(MainActivity.this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.ParseColor("#2196F3")
        , 4
);

// With Call Back:
SmartRate.Rate(MainActivity.this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.ParseColor("#2196F3")
        , 4
        , new CallBack_UserRating()
        }
);

public class CallBack_UserRating : Java.Lang.Object, ICallBack_UserRating {
            public object void userRating(int rating) {
                // Do something
                // maybe from now disable this button
            }
}

// Self implement without link to google play store:
// -1 on stars
SmartRate.Rate(MainActivity.this
        , Color.ParseColor("#E44643")
        , -1
        , new CallBack_UserRating()
);

A library for simple implementation of smart ranking.
The user will see a dialog every x time.
If the user gives a high score, he will be transferred to the Google store. If he gives a low score, he will only receive a thank you toast message.

Usage

StepProgress Constructor:

// For continual calls - 
SmartRate.Rate(this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Ask me later"
        , "Never ask again"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.ParseColor("#2196F3")
        , 4
        , 48
        , 72
);

// For one time call
SmartRate.Rate(MainActivity.this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.ParseColor("#2196F3")
        , 4
);

// With Call Back:
SmartRate.Rate(MainActivity.this
        , "Rate Us"
        , "Tell others what you think about this app"
        , "Continue"
        , "Please take a moment and rate us on Google Play"
        , "click here"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.ParseColor("#2196F3")
        , 4
        , new CallBack_UserRating()
        }
);

public class CallBack_UserRating : Java.Lang.Object, ICallBack_UserRating {
            public object void userRating(int rating) {
                // Do something
                // maybe from now disable this button
            }
}

// Self implement without link to google play store:
// -1 on stars
SmartRate.Rate(MainActivity.this
        , Color.ParseColor("#E44643")
        , -1
        , new CallBack_UserRating()
);

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0.8 64 8/11/2019