• Stars
    star
    965
  • Rank 45,890 (Top 1.0 %)
  • Language
    C#
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A cross platform library that allows you to call for standard user dialogs from a core .net standard library, Actionsheets, alerts, confirmations, loading, login, progress, prompt, toast... async just for fun

As of March 5, 2021 - this library is now in lockdown. You are welcome to submit PR's for issues you may be having and they will be reviewed, but I will no longer be adding new features or frontlining issues.

ACR User Dialogs

A cross platform library that allows you to call for standard user dialogs from a shared/portable library. Supports Android, iOS, and Unified Windows Platform (UWP, UAP)

NuGet

Features

  • Action Sheets
  • Alert
  • Confirm
  • Date
  • Loading/Progress
  • Login
  • Prompt
  • Toasts
  • Time
  • Sample

Support Platforms

v7.x Supports

  • iOS 8+
  • Android
  • Universal Windows Platform (Win10/UWP)
  • NET Standard 2.0

v8.x Supports ONLY .NET 6 target

  • .NET for Android (major target 12)
  • .NET for iOS
  • .NET for MacCatalyst

Setup

To use, simply reference the nuget package in each of your platform projects. If you are getting issues with System.Drawing.Color, please make sure you are using the latest version of Xamarin

iOS and Windows

Nothing is necessary any longer as of v4.x.  There is an Init function for iOS but it is OPTIONAL and only required if you want/need to control
the top level viewcontroller for things like iOS extensions.  Progress prompts will not use this factory function though!

Android Initialization (In your main activity)

UserDialogs.Init(this);
OR UserDialogs.Init(() => provide your own top level activity provider)

Powered By:

Frequently Asked Questions

  1. I'm getting a nullreferenceexception when using loading.

    • This happens when you run loading (or almost any dialog) from the constructor of your page or viewmodel. The view hasn't been rendered yet, therefore there is nothing to render to.
  2. I'm getting "This is the PCL library, not the platform library. Did you include the nuget package in your main "executable" project?"

    • Do exactly what it says
  3. Navigating while inside of a loading/progress dialog causes exceptions or the progress no longer appears properly

    • Hide the progress dialog before navigating
  4. I don't like the way X method works on platform Y

    • No problems. Override the implementation like below

    on the platform public class MyCustomUserDialogs : Acr.UserDialogs.UserDialogImpl { public override .. }

    in appdelegate or the starting activity UserDialogs.Instance = new MyCustomUserDialogs();

  5. Why don't you support the latest Android support libraries?

    • Because Xamarin breaks these frequently, one way or another - every... single... major release. Be patient and wait!
  6. Why don't you cancel a dialog when the app goes to the background (AND) why do I get an exception when I call for a dialog?

    • USER DIALOGS DOES NOT SOLVE WORLD PEACE! Guess what - most android API version and iOS don't call this. This library is not a window state manager, if you call for a dialog, it will try to present one. If your app goes to the background and you call for a dialog, iOS & Android are tossing you the exception. The library isn't here to save you from bad design choices.
      Call us an anti-pattern if you want, we present dialogs!
  7. Why does the library allow me to open multiple windows?

    • Similar to #6 - the library does not manage windows. It opens dialogs - SURPRISE
  8. I'd like to customize the dialogs

    • The library wasn't really designed or meant for this. It was meant for using native dialogs. That's it. If you need something more customizable, this is not the library for it.

Contributors

More Repositories

1

bluetoothle

Easy to use, cross platform, REACTIVE BluetoothLE Plugin for Xamarin
C#
404
star
2

acr-xamarin-forms

Camera/Gallery, Barcode Scanning, User Dialogs, Geo-Location, Network Utils, Device Info, Settings, E-Mail, Phone, SMS all for Xamarin.Forms
C#
249
star
3

notifications

Local notifications for iOS, Android, & Windows. Includes badges, scheduled notifications, sounds, & context actions
C#
102
star
4

httptransfertasks

Cross Platform HTTP Transfers for downloading and uploading (supports background operations)
C#
86
star
5

jobs

Background Jobs Framework for Xamarin & UWP
C#
82
star
6

speechrecognition

Easy to use cross platform speech recognition (speech to text) plugin for Xamarin & UWP
C#
77
star
7

deviceinfo

ACR Device Information for Xamarin & Windows
C#
73
star
8

settings

A cross platform settings plugin for Xamarin and Windows. Unlike other setting libraries in the wild, this library provides several unique features. Store almost any object, monitor change events, iOS app groups, iCloud Provider, and Old school windows settings
C#
70
star
9

geofences

Cross platform geofencing library that works on iOS, Android, and Windows
C#
61
star
10

acrmvvmcross

Several MvvmCross plugins that I have used on a few projects
C#
46
star
11

sensors

Reactive mobile device sensors plugin for iOS, Android, & UWP. Support sensors - accelerometer, ambient light, barometer, compass, gyroscope, magnetometer, pedometer, and proximity
C#
42
star
12

estimotes-xplat

Estimotes Plugin for Xamarin to allow for cross platform development using the Estimote SDK
C#
40
star
13

biometrics

This library is no longer supported. Please use https://www.nuget.org/packages/Plugin.Fingerprint/
C#
9
star
14

ShinyGpsSync

An example of how people can use real time connectivity/location to move data
C#
8
star
15

mvxgoodies

C#
7
star
16

barcodes

A cross platform barcode scanning and creating library built on top of ZXing.Net.Mobile
C#
7
star
17

beacons

Cross platform beacons
C#
6
star
18

Stream-Todo

C#
6
star
19

talks

C#
5
star
20

TOMobileGroupShinySample

C#
4
star
21

extensions

C#
4
star
22

userdialogsforms

C#
3
star
23

BeatTheBank

C#
3
star
24

DigitalScoreboard

C#
3
star
25

support

C#
1
star
26

aritchie.github.io

HTML
1
star
27

cache

Cache abstraction with several PCL implementations
C#
1
star
28

xdsworkshop

C#
1
star