-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from ai-ro-bo/dev
5.0.0-pre3 release
- Loading branch information
Showing
6 changed files
with
64 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## Rox Camera Control for Xamarin.Forms | ||
|
||
| Site | [rox.tools/control/camera](https://rox.tools/control/camera/) | | ||
| NuGet | [nuget.org/packages/Rox.Xamarin.Camera](https://www.nuget.org/packages/Rox.Xamarin.Camera/) | | ||
| Source | [github.com/ai-ro-bo/Rox.Control.Camera.Xamarin](https://github.com/ai-ro-bo/Rox.Control.Camera.Xamarin) | | ||
|
||
--- | ||
|
||
Acquire images with the device camera in Xamarin.Forms with the Rox Camera Control. Supports Android, iOS, and UWP. | ||
|
||
The CameraProvider component uses native platform components. | ||
|
||
--- | ||
|
||
### Android | ||
|
||
In your Android project "MainActivity" code file, you must call "Rox.Camera.Init(Activity)" before "Xamarin.Forms.Forms.Init()". It should look something like: | ||
|
||
```csharp | ||
global::Rox.Camera.Init(this); | ||
|
||
global::Xamarin.Forms.Forms.Init(); | ||
|
||
LoadApplication(new MyCameraApplication()); | ||
``` | ||
|
||
### iOS | ||
|
||
In your iOS project "AppDelegate" code file, you must call "CameraControlApple.Initialise()" before "Xamarin.Forms.Forms.Init()". It should look something like: | ||
|
||
```csharp | ||
global::Rox.Camera.Init(); | ||
|
||
global::Xamarin.Forms.Forms.Init(); | ||
|
||
LoadApplication(new MyCameraApplication()); | ||
``` | ||
|
||
--- | ||
|
||
The Rox Camera Control has the following methods: | ||
|
||
```csharp | ||
Task<ImageSource> AcquirePicture(); //Take a picture with the device camera | ||
``` | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters