Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sharmapranav/Xamarin
Sample Xamarin projects
https://github.com/sharmapranav/Xamarin
xamarin xamarin-forms
Last synced: 4 months ago
JSON representation
Sample Xamarin projects
- Host: GitHub
- URL: https://github.com/sharmapranav/Xamarin
- Owner: sharmapranav
- License: mit
- Created: 2017-02-20T02:52:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-27T13:10:27.000Z (over 6 years ago)
- Last Synced: 2024-07-30T21:04:51.133Z (6 months ago)
- Topics: xamarin, xamarin-forms
- Language: C#
- Homepage:
- Size: 1.06 MB
- Stars: 33
- Watchers: 8
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xamarin
## Contents
* [Ads](#ads)
* [Taxonomic_Information](#taxonomic_information)## Ads
This sample Xamarin.Forms project demonstrates how to implement banner ads of different sizes and interstitial ads on iOS, Android and Windows(UWP) apps.iOS and Android use Google's AdMob as an ad provider while Windows(UWP) uses Microsoft Store Services.
### How-To
* PCL
* Implement [`AdBanner.cs`](./Ads/Ads/Ads/AdBanner.cs)
* Implement [`IAdInterstitial.cs`](./Ads/Ads/Ads/IAdInterstitial.cs)
* Android
* Install [Xamarin.GooglePlayServices.Ads](https://www.nuget.org/packages/Xamarin.GooglePlayServices.Ads/) nuget
* Implement [`AdBanner_Droid.cs`](./Ads/Ads/Ads.Droid/AdBanner_Droid.cs)
* Implement [`IAdInterstitial_Droid.cs`](./Ads/Ads/Ads.Droid/AdInterstitial_Droid.cs)
* Change AdMob id for real ads
* iOS
* Install [Xamarin.Firebase.iOS.AdMob](https://www.nuget.org/packages/Xamarin.Firebase.iOS.AdMob/) nuget
* Implement [`AdBanner_iOS.cs`](./Ads/Ads/Ads.iOS/AdBanner_iOS.cs)
* Implement [`IAdInterstitial_iOS.cs`](./Ads/Ads/Ads.iOS/AdInterstitial_iOS.cs)
* Change AdMob id for real ads
* Windows(UWP)
* Install [Microsoft Store Services](https://docs.microsoft.com/en-us/windows/uwp/monetize/adcontrol-in-xaml-and--net) SDK
* Implement [`AdBanner_UWP.cs`](./Ads/Ads/Ads.UWP/AdBanner_UWP.cs)
* Implement [`IAdInterstitial_UWP.cs`](./Ads/Ads/Ads.UWP/AdInterstitial_UWP.cs)
* Change ApplicationId and AdUnitId id for real ads#### AdBanner
``` C#
var adBanner = new AdBanner();
adBanner.Size = AdBanner.Sizes.MediumRectangle;
``````XAML
```
#### AdInterstitial
``` C#
IAdInterstitial adInterstitial = DependencyService.Get();
adInterstitial.ShowAd();
```![]()
## Taxonomic_Information
This sample Xamarin.Forms project searches and retrieves data from Integrated Taxonomic Information System (ITIS) by accessing web service APIs provided by ITIS.All API descriptions and documentation can be accessed [here](https://www.itis.gov/ws_description.html)
![]()
![]()
![]()