Code Monkey home page Code Monkey logo

irate's Introduction

AlexTouch.iRate

This is a MonoTouch Binding for iRate library, you just need to add the AlexTouch.iRate.dll to you project references and add the following using statement to your source file.

		using iRateBinding;

In your finishedlaunching method you can configure the iRate instance as needed,

		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
					iRate r = iRate.SharedInstance();
					
					r.UserDidAttemptToRateApp += delegate {
						Console.WriteLine("User Did Attempt to Rate App");
					};

					r.CouldNotConnectToAppStore += delegate {
						Console.WriteLine("Ups!! Could not connect to AppStore");
					};

					r.DidDetectAppUpdate += delegate {
						Console.WriteLine("Yaay!! App update Detected");
					};

					r.UserDidDeclineToRateApp += delegate {
						Console.WriteLine("User Declined to rate app #SadFace :'( ");
					};

					r.UserDidRequestReminderToRateApp += delegate {
						Console.WriteLine("User Requested to be reminded l8ters");
					};

					r.PreviewMode = true; // Set this to true if you want to test it
					
					// you can find this info in itunes connect ;)
					r.AppStoreID = <your appstore id here>;
					r.ApplicationBundleID = "<your bundle identifier here>";
					.....
		}

You need to add iRate.bundle to your application so just right click on your project in MonoDevelop and click Add/Add Existing Folder then navigate to iRate.bundle select it and include all files, also you need to set all .strings files build action to content.

Documentation of this API and Thanks To

All kudos for this Amazing lib goes to Nick Lockwood ( https://github.com/nicklockwood ) also you can find all the documentation on how to use this lib on https://github.com/nicklockwood/iRate#readme

irate's People

Contributors

dalexsoto avatar hexate avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.