Xamarin-SmartRate 2.0.0

dotnet add package Xamarin-SmartRate --version 2.0.0
NuGet\Install-Package Xamarin-SmartRate -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xamarin-SmartRate" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin-SmartRate --version 2.0.0
#r "nuget: Xamarin-SmartRate, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin-SmartRate as a Cake Addin
#addin nuget:?package=Xamarin-SmartRate&version=2.0.0

// Install Xamarin-SmartRate as a Cake Tool
#tool nuget:?package=Xamarin-SmartRate&version=2.0.0

sponsor me

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.

alternate text is missing from this package README image

Usage

StepProgress Constructor:

// For continual calls - 
// first call after 3 days, the dialog will appear every 2 days until the user rates the app / or clicks on NEVER ASK AGAIN button
// the number 4 represents the minimum stars to be shown
// the 48 represents 48h and is going to be shown after 2 days
// the 72 represents 72h delay and the dialog is going to be shown after 3 days more
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
// it will appear after 3 days by default
// the number 4 represents the minimum stars to be shown
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"
        , "Cancel"
        , "Thanks for the feedback"
        , Color.ParseColor("#2196F3")
        , 4
);

// With Call Back:
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"
        , "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(this
        , Color.ParseColor("#E44643")
        , -1
        , new CallBack_UserRating()
);

Follow me at:

LinkedIn YouTube Amazon Goodreads Instagram Cyber Prophets Sharing Your Stories
LinkedIn YouTube Amazon Goodreads Instagram RedCircle Podcast RedCircle Podcast
Product Compatible and additional computed target framework versions.
.NET net6.0-android was computed.  net7.0-android was computed.  net8.0-android was computed. 
MonoAndroid monoandroid is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 545 7/26/2020
1.0.0.8 731 8/11/2019

- Upgraded to AndroidX.
- Improved documentation.