|
1 | 1 | # Image-Editor-localization-sample-for-native-platforms |
2 | | -This repository contain samples for image editor localization |
| 2 | +This repository contain samples demonstrating localization support for native platforms using Syncfusion Xamarin SfImageEditor on [Android](https://help.syncfusion.com/cr/xamarin-android/Syncfusion.SfImageEditor.Android.SfImageEditor.html) and [iOS](https://help.syncfusion.com/cr/xamarin-ios/Syncfusion.SfImageEditor.iOS.SfImageEditor.html). |
| 3 | + |
| 4 | +## Syncfusion controls: |
| 5 | + |
| 6 | +This project used the following Syncfusion control(s): |
| 7 | +* SfImageEditor for Android. |
| 8 | +* SfImageEditor for iOS. |
| 9 | + |
| 10 | +## Supported platforms |
| 11 | + |
| 12 | +### Android |
| 13 | + |
| 14 | +<table> |
| 15 | + <tr> |
| 16 | + <th>Platform<br/> |
| 17 | + <br/></th> |
| 18 | + <th> |
| 19 | + Device Types |
| 20 | + <br/> |
| 21 | + <br/> |
| 22 | + </th> |
| 23 | + <th> |
| 24 | + Controls |
| 25 | + <br/> |
| 26 | + <br/> |
| 27 | + </th> |
| 28 | + <th> |
| 29 | + Supported versions |
| 30 | + <br/> |
| 31 | + <br/> |
| 32 | + </th> |
| 33 | + </tr> |
| 34 | + <tr> |
| 35 | + <td rowspan="2"> |
| 36 | + Android |
| 37 | + <br/> |
| 38 | + <br/> |
| 39 | + </td> |
| 40 | + <td rowspan="2"> |
| 41 | + Phone, Tablet |
| 42 | + <br/> |
| 43 | + <br/> |
| 44 | + </td> |
| 45 | + <td> |
| 46 | + SfPdfViewer, SfCheckBox |
| 47 | + <br/> |
| 48 | + <br/> |
| 49 | + </td> |
| 50 | + <td> |
| 51 | + API level 21 and later versions |
| 52 | + <br/> |
| 53 | + <br/> |
| 54 | + </td> |
| 55 | + </tr> |
| 56 | + <tr> |
| 57 | + <td> |
| 58 | + All other controls |
| 59 | + <br/> |
| 60 | + <br/> |
| 61 | + </td> |
| 62 | + <td> |
| 63 | + API level 19 and later versions |
| 64 | + <br/> |
| 65 | + <br/> |
| 66 | + </td> |
| 67 | + </tr> |
| 68 | +</table> |
| 69 | + |
| 70 | +### iOS |
| 71 | + |
| 72 | +<table> |
| 73 | + <tr> |
| 74 | + <th>Platform<br/> |
| 75 | + <br/></th> |
| 76 | + <th> |
| 77 | + Device Types |
| 78 | + <br/> |
| 79 | + <br/> |
| 80 | + </th> |
| 81 | + <th> |
| 82 | + Controls |
| 83 | + <br/> |
| 84 | + <br/> |
| 85 | + </th> |
| 86 | + <th> |
| 87 | + Supported versions |
| 88 | + <br/> |
| 89 | + <br/> |
| 90 | + </th> |
| 91 | + </tr> |
| 92 | + <tr> |
| 93 | + <td> |
| 94 | + iOS |
| 95 | + <br/> |
| 96 | + <br/> |
| 97 | + </td> |
| 98 | + <td> |
| 99 | + iPhone, iPod, iPad |
| 100 | + <br/> |
| 101 | + <br/> |
| 102 | + </td> |
| 103 | + <td> |
| 104 | + All controls |
| 105 | + <br/> |
| 106 | + <br/> |
| 107 | + </td> |
| 108 | + <td> |
| 109 | + iOS 9.0 and later versions |
| 110 | + <br/> |
| 111 | + <br/> |
| 112 | + </td> |
| 113 | + </tr> |
| 114 | +</table> |
| 115 | + |
| 116 | +## Requirements to run the sample |
| 117 | + |
| 118 | +* [Visual Studio](https://visualstudio.microsoft.com/downloads/) or [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/) |
| 119 | + |
| 120 | +Refer to the following link for more details - [Android](https://help.syncfusion.com/xamarin-android/system-requirements), [iOS](https://help.syncfusion.com/xamarin-ios/system-requirements). |
| 121 | + |
| 122 | +## How to run the sample |
| 123 | + |
| 124 | +1. Clone the sample and open it in Visual Studio. |
| 125 | + |
| 126 | + *Note: If you download the sample using the "Download ZIP" option, right-click it, select Properties, and then select Unblock.* |
| 127 | + |
| 128 | +2. Register your license key as demonstrated in the following code. |
| 129 | + |
| 130 | + ### Android |
| 131 | + |
| 132 | + protected override void OnCreate(Bundle savedInstanceState) |
| 133 | + { |
| 134 | + //Register Syncfusion<sup>®</sup> license |
| 135 | + Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY"); |
| 136 | + |
| 137 | + base.OnCreate(savedInstanceState); |
| 138 | + |
| 139 | + // Set our view from the "main" layout resource |
| 140 | + SetContentView(Resource.Layout.Main); |
| 141 | + } |
| 142 | + |
| 143 | + ### iOS |
| 144 | + |
| 145 | + public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) |
| 146 | + { |
| 147 | + //Register Syncfusion<sup>®</sup> license |
| 148 | + Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY"); |
| 149 | + |
| 150 | + // create a new window instance based on the screen size |
| 151 | + Window = new UIWindow(UIScreen.MainScreen.Bounds); |
| 152 | + |
| 153 | + // If you have defined a root view controller, set it here: |
| 154 | + // Window.RootViewController = myViewController; |
| 155 | + |
| 156 | + // make the window visible |
| 157 | + Window.MakeKeyAndVisible(); |
| 158 | + |
| 159 | + return true; |
| 160 | + } |
| 161 | + |
| 162 | + Refer to this links ([Android](https://help.syncfusion.com/xamarin-android/licensing/overview), [iOS](https://help.syncfusion.com/xamarin-ios/licensing/overview)) for more details. |
| 163 | + |
| 164 | +3. Clean and build the application. |
| 165 | + |
| 166 | +4. Run the application. |
| 167 | + |
| 168 | +## License |
| 169 | + |
| 170 | +Syncfusion has no liability for any damage or consequence that may arise by using or viewing the samples. The samples are for demonstrative purposes, and if you choose to use or access the samples, you agree to not hold Syncfusion liable, in any form, for any damage that is related to use, for accessing, or viewing the samples. By accessing, viewing, or seeing the samples, you acknowledge and agree Syncfusion’s samples will not allow you seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize, or otherwise do anything with Syncfusion’s samples. |
0 commit comments