Skip to content

[Feature Request] isSupported() #8

@ghost

Description

This is kinda a silly thing to request at first, but in the other freshplanet ANE there is sometimes a isSupported() function that really comes in handy while developing on a PC without throwing an Error.
It would be nice to have this in this repo as well to avoid Exceptions thrown around while not test on the device itself.

For now this can achieve the same thing:

    var softKeyboardSupport:Boolean = true;
    var softKeyboardHeight:Number;

    try {
        softKeyboardHeight = MeasureKeyboard.getInstance().getKeyboardHeight() as Number;
    }catch(error:*){
        softKeyboardSupport = false;
    }

    trace("softKeyboardSupport = "+softKeyboardSupport);

Cheers
Mortimer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions