Book Image

Xamarin 4 By Example

By : Engin Polat, Mark Radacz
Book Image

Xamarin 4 By Example

By: Engin Polat, Mark Radacz

Overview of this book

The mobile app market is increasing exponentially every year. Xamarin Studio with its modern and powerful IDEs makes creating applications a lot easier by simplifying the development process. Xamarin will allow you and your team to create native applications by taking advantage of one of the most evolved programming language in the world: C#. This book will provide you with the basic skills you need to start developing mobile apps using C# and Xamarin. By working through the examples in each chapter, you will gain hands-on experience of creating a complete app that is fully functional by all means. Finally, you will learn to publish the app you created on the app market. Each project in this book will take you one step closer to becoming a professional app developer.
Table of Contents (16 chapters)
Xamarin 4 By Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
7
Monkey Puzzle Game – Processing Images

App linking example


Sometimes we might need to write a renderer in order to use features that are not available in the Xamarin.Forms framework. One example of that is App Links.

App Links is a way to link our app with other apps or to handle our app's incoming links. Let's develop a solution that allows us to insert a phone number inside our app and make a call with the Skype app when installed in the user device.

In our CustomRenderers core project, we can create a new Content page that contains an entry box to insert the phone number and a button that will redirect us to the Skype app.

We will also create an event that will transform the click on the button as a Call event, passing the phone number to call:

public class SkypeCallPage : ContentPage 
{ 
    public event CallHandler Call; 
 
    public delegate void CallHandler (string number); 
 
    public void OnCall (string number) 
    { 
        if (Call != null) { 
            Call (number)...