You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Acr.UserDialogs.Shared/UserDialogs.cs
+17-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,9 @@
6
6
usingAndroid.App;
7
7
usingAcr.Support.Android;
8
8
#endif
9
+
#if __TIZEN__
10
+
usingElmSharp;
11
+
#endif
9
12
10
13
namespaceAcr.UserDialogs
11
14
{
@@ -51,7 +54,15 @@ public static void Init(Func<UIViewController> viewControllerFunc)
51
54
{
52
55
Instance=newUserDialogsImpl(viewControllerFunc);
53
56
}
54
-
57
+
#elif __TIZEN__
58
+
/// <summary>
59
+
/// Initialize Tizen user dialogs
60
+
/// </summary>
61
+
/// <param name="window"></param>
62
+
publicstaticvoidInit(Windowwindow)
63
+
{
64
+
Instance=newUserDialogsImpl(window);
65
+
}
55
66
#endif
56
67
57
68
staticIUserDialogscurrentInstance;
@@ -65,6 +76,11 @@ public static IUserDialogs Instance
65
76
#elif __ANDROID__
66
77
if(currentInstance==null)
67
78
thrownewArgumentException("[Acr.UserDialogs] In android, you must call UserDialogs.Init(Activity) from your first activity OR UserDialogs.Init(App) from your custom application OR provide a factory function to get the current top activity via UserDialogs.Init(() => supply top activity)");
79
+
#elif __TIZEN__
80
+
if(currentInstance==null)
81
+
{
82
+
thrownewArgumentException("[Acr.UserDialogs] In Tizen, the window instance of your custom application must be passed by using UserDialogs.Init(Window).");
/// Format is a combination of allowed LIBC date format specifiers like: "%b %d, %Y %I : %M %p".
59
+
/// </summary>
60
+
/// <remarks>
61
+
/// These specifiers can be arranged in any order and the widget displays the fields accordingly.
62
+
/// However, you cannot use date and time settings in combination.
63
+
/// The default format is taken as per the system locale settings.
64
+
/// </remarks>
65
+
/// <remarks>
66
+
/// The maximum allowed format length is 64 chars.<br>
67
+
/// The format can include separators for each individual DateTime field except for the AM/PM field.<br>
68
+
/// Each separator can be a maximum of 6 UTF-8 bytes. Space is also taken as a separator.<br>
69
+
/// Following are the allowed set of format specifiers for each DateTime field.<br>
70
+
/// %Y : The year as a decimal number including the century.<br>
71
+
/// %m : The month as a decimal number (range 01 to 12).<br>
72
+
/// %b : The abbreviated month name according to the current locale.<br>
73
+
/// %B : The full month name according to the current locale.<br>
74
+
/// %h : The abbreviated month name according to the current locale(same as %b).<br>
75
+
/// %d : The day of the month as a decimal number(range 01 to 31).<br>
76
+
/// %e : The day of the month as a decimal number(range 1 to 31). Single digits are preceded by a blank.<br>
77
+
/// %I : The hour as a decimal number using a 12-hour clock(range 01 to 12).<br>
78
+
/// %H : The hour as a decimal number using a 24-hour clock(range 00 to 23).<br>
79
+
/// %k : The hour(24-hour clock) as a decimal number(range 0 to 23). Single digits are preceded by a blank.<br>
80
+
/// %l : The hour(12-hour clock) as a decimal number(range 1 to 12). Single digits are preceded by a blank.<br>
81
+
/// %M : The minute as a decimal number(range 00 to 59).<br>
82
+
/// %p : Either 'AM' or 'PM' according to the given time value, or the corresponding strings for the current locale. Noon is treated as 'PM' and midnight as 'AM'.<br>
83
+
/// %P : Like %p, but in lower case: 'am' or 'pm' or a corresponding string for the current locale.<br>
84
+
/// %c : The preferred date and time representation for the current locale.<br>
85
+
/// %x : The preferred date representation for the current locale without the time.<br>
86
+
/// %X : The preferred time representation for the current locale without the date.<br>
87
+
/// %r : The complete calendar time using the AM/PM format of the current locale.<br>
88
+
/// %R : The hour and minute in decimal numbers using the format H:M.<br>
89
+
/// %T : The time of the day in decimal numbers using the format H:M:S.<br>
0 commit comments