Skip to content

mphill/MobileKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

MobileKit

Xamarin (iOS & Android) apps

Features

BackgroundTask

Create long lived tasks that will continue to run after your app is placed into the background. This also allow you to run a timer in the background.

Example: Sleep Timer

        var player = Audio.Instance();

        player.Play("crickets.mp3", true);

        BackgroundTask.Instance.Run(TimeSpan.FromMinutes(1), () =>
        {
            player.Stop();
            player.Play("alert.mp3");
        });

Audio

A simple wrapper to play audio files.

Audio.Instance().Play("alert.mp3");

Brightness

Control the screen brightness

Android: Required WRITE_SETTINGS permission

Example: Set screen brightness on a 0.0 - 1.0 scale

Brightness.Set(0.7f)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages