Class iOSNativeCalls | Platforms iOS | 0.9.0-preview.9
docs.unity3d.com
    Show / Hide Table of Contents

    Class iOSNativeCalls

    Inheritance
    Object
    iOSNativeCalls
    Namespace: Unity.Tiny.iOS
    Syntax
    public static class iOSNativeCalls

    Methods

    availableSensor(Int32)

    Declaration
    public static bool availableSensor(int type)
    Parameters
    Type Name Description
    Int32 type
    Returns
    Type Description
    Boolean

    enableSensor(Int32, Boolean)

    Declaration
    public static bool enableSensor(int type, bool enable)
    Parameters
    Type Name Description
    Int32 type
    Boolean enable
    Returns
    Type Description
    Boolean

    getNativeWindow()

    Declaration
    public static void *getNativeWindow()
    Returns
    Type Description
    Void*

    getScreenOrientation(ref Int32)

    Declaration
    public static void getScreenOrientation(ref int orientation)
    Parameters
    Type Name Description
    Int32 orientation

    getScreenSize(ref Int32, ref Int32)

    Declaration
    public static void getScreenSize(ref int w, ref int h)
    Parameters
    Type Name Description
    Int32 w
    Int32 h

    getSensorFrequency(Int32)

    Declaration
    public static int getSensorFrequency(int type)
    Parameters
    Type Name Description
    Int32 type
    Returns
    Type Description
    Int32

    getSensorStream(Int32, ref Int32)

    Declaration
    public static double *getSensorStream(int type, ref int len)
    Parameters
    Type Name Description
    Int32 type
    Int32 len
    Returns
    Type Description
    Double*

    getTouchInfoStream(ref Int32)

    Declaration
    public static int *getTouchInfoStream(ref int len)
    Parameters
    Type Name Description
    Int32 len
    Returns
    Type Description
    Int32*

    getWindowSize(ref Int32, ref Int32)

    Declaration
    public static void getWindowSize(ref int w, ref int h)
    Parameters
    Type Name Description
    Int32 w
    Int32 h

    init()

    Declaration
    public static bool init()
    Returns
    Type Description
    Boolean

    inputStreamsLock(Boolean)

    Declaration
    public static void inputStreamsLock(bool lck)
    Parameters
    Type Name Description
    Boolean lck

    messagePump()

    Declaration
    public static bool messagePump()
    Returns
    Type Description
    Boolean

    resetStreams()

    Declaration
    public static void resetStreams()

    rotate_to_allowed_orientation()

    Declaration
    public static bool rotate_to_allowed_orientation()
    Returns
    Type Description
    Boolean

    rotate_to_device_orientation()

    Declaration
    public static bool rotate_to_device_orientation()
    Returns
    Type Description
    Boolean

    set_destroy_callback(IntPtr)

    Declaration
    public static bool set_destroy_callback(IntPtr func)
    Parameters
    Type Name Description
    IntPtr func
    Returns
    Type Description
    Boolean

    set_device_orientation_callback(IntPtr)

    Declaration
    public static bool set_device_orientation_callback(IntPtr func)
    Parameters
    Type Name Description
    IntPtr func
    Returns
    Type Description
    Boolean

    set_orientation_mask(Int32)

    Declaration
    public static bool set_orientation_mask(int orientation)
    Parameters
    Type Name Description
    Int32 orientation
    Returns
    Type Description
    Boolean

    set_pause_callback(IntPtr)

    Declaration
    public static bool set_pause_callback(IntPtr func)
    Parameters
    Type Name Description
    IntPtr func
    Returns
    Type Description
    Boolean

    setSensorFrequency(Int32, Int32)

    Declaration
    public static void setSensorFrequency(int type, int rate)
    Parameters
    Type Name Description
    Int32 type
    Int32 rate

    setWindowSize(Int32, Int32)

    Declaration
    public static bool setWindowSize(int width, int height)
    Parameters
    Type Name Description
    Int32 width
    Int32 height
    Returns
    Type Description
    Boolean

    shutdown(Int32)

    Declaration
    public static void shutdown(int exitCode)
    Parameters
    Type Name Description
    Int32 exitCode
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023