-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSignatureNative.uno
More file actions
52 lines (40 loc) · 792 Bytes
/
SignatureNative.uno
File metadata and controls
52 lines (40 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace Native
{
using Uno;
using Fuse;
using Uno.UX;
using Fuse.Controls;
using Fuse.Controls.Native;
using Fuse.Scripting;
using Uno.Compiler.ExportTargetInterop;
internal interface SignatureHost
{
}
internal interface ISignature
{
void ClearSignature();
void Save(string fileName);
}
public partial class Signature : Control, SignatureHost
{
ISignature SignatureView
{
get { return NativeView as ISignature; }
}
protected override IView CreateNativeView()
{
if defined(Android)
{
return new Native.Android.Signature(this);
}
else if defined(iOS)
{
return new Native.iOS.Signature(this);
}
else
{
return base.CreateNativeView();
}
}
}
}