GithubHelp home page GithubHelp logo

mystraht / hypsystem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperfiction/hypsystem

0.0 1.0 0.0 2.17 MB

HypSystem : Native extension for Haxe NME ( iOS & Android )

License: BSD 2-Clause "Simplified" License

Haxe 10.57% Shell 2.14% C++ 9.91% Objective-C++ 10.02% Objective-C 67.36%

hypsystem's Introduction

HypSystem

A native extension for OpenFL

This extensions contains a bunch of tools methods for iOS & Android.

Installation

There is an include.nmml file and the ndll are compiled for:

  • ios armv6
  • ios armv7
  • ios simulator
  • android armv6

Recompiling

For recompiling the native extensions just use the sh files contained in the project folder.

Basic reference

The NetworkInfos class:

isConnected: Does the device has a active connection of any type.

getConnectionType: Get the type of the active connection (NONE / WIFI / MOBILE)

isWifi: Allow to test if active connection is of Wifi type.

listen:The extension listen for connectivity status change.

The Device class:

getName: Return the device name on iOS (example: Bob's iPad), the device model name on Android (Example : Nexus 4)

getUuid: Return the device uuid. It's not using the device uuid, but a generated uuid for both platforms.

getLanguageCode: Return the device language code.

getScreenHeight: Return the device screen height.

getScreenWidth: Return the device screen width.

getScaleFactor: Return the screen scale factor.

isTablet: Return true if the current device is a tablet.

The Android platform class (hypsystem.system.platform.Android)

getScreenBucket: Return the screen bucket of the device. (ldpi/mdpi/hdpi/xhdpi/xxhdpi)

dpToPx: Convert a DP value to pixels

getUDID: Return the device UDID.

The DateTools class (hypsystem.system.DateTools)

Adding ISO & UTF date support to haxe by using native methods (iOS & Android)

Made at Hyperfiction

hyperfiction.fr

Developed by : Johann Martinache @shoe_box

License

This work is under BSD simplified License.

hypsystem's People

Contributors

shoebox avatar fbricker avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.