• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

sami1971/SimplyMobile: Collection of abstracted mobile functionalities. Xamarin. ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

sami1971/SimplyMobile

开源软件地址(OpenSource Url):

https://github.com/sami1971/SimplyMobile

开源编程语言(OpenSource Language):

C# 100.0%

开源软件介绍(OpenSource Introduction):

SimplyMobile

Collection of abstracted mobile functionalities. Xamarin.iOS, Xamarin.Android & WP8.

Simple to use components and usage examples suitable also for new Xamarin developers. Device abstraction examples help in understanding the differences between the platforms. Usage of the components are designed to be extremely simple.

Example use of the static Battery class is the same from iOS, Android and WP8:

var currentBatteryLevel = Battery.Level; // returns a unified 0-100 based on the battery level

Battery.OnLevelChange += (sender, level) => {...subscribes to level change events...};

One of the most helpful classes is a data source designed to work with the base data observers (UITableView, ListView etc). On Windows platforms many controls already use ObservableCollection as their data source so it was the natural base for the class. Basic use (displaying textbox with the object value) does not require more than the below code. To display custom views only a few lines of code is needed (more in the wiki-pages).

// create a new datasource from existing collection (optional)
var dataSource = new ObservableDataSource<EditableText> (<insert enumerable list from f.e. SQLite database>);

// bind a consumer, f.e. UITableView
datasource.Bind(<data consumer>);

// add new item, will automatically refresh the consumer
dataSource.Add(new EditableText());

Project also includes some plugins using third party OSS libraries. For example IJsonSerializer has both JSON.Net and ServiceStack.Text plugins allowing easy swap from one (de)serializer to another and of course the so important performance tests. Recent addition is ServiceStack.OrmLite.SQLite libraries for both iOS and Android allowing easy access to SQLite databases (ServiceStack.OrmLite also supports many major databases on the desktop/server side).




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
hilongjw/vue-mobile-qq: 一个长得像QQ的demo发布时间:2022-08-30
下一篇:
moiseshilario/delivery-app-mobile: 发布时间:2022-08-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap