Class AndroidNativeCalls | Platforms Android | 0.10.0-preview.10
docs.unity3d.com
    Show / Hide Table of Contents

    Class AndroidNativeCalls

    Inheritance
    Object
    AndroidNativeCalls
    Namespace: Unity.Tiny.Android
    Syntax
    public static class AndroidNativeCalls

    Methods

    availableSensor(Int32)

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

    enableSensor(Int32, Boolean, Int32)

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

    getKeyStream(ref Int32)

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

    getNativeWindow()

    Declaration
    public static long getNativeWindow()
    Returns
    Type Description
    Int64

    getNaturalOrientation()

    Declaration
    public static int getNaturalOrientation()
    Returns
    Type Description
    Int32

    getScreenSize(ref Int32, ref Int32)

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

    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

    isOrientationAllowed(Int32)

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

    messagePump()

    Declaration
    public static bool messagePump()
    Returns
    Type Description
    Boolean

    resetInputStreams()

    Declaration
    public static void resetInputStreams()

    resize(Int32, Int32)

    Declaration
    public static void resize(int width, int height)
    Parameters
    Type Name Description
    Int32 width
    Int32 height

    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_pause_callback(IntPtr)

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

    set_screen_orientation_callback(IntPtr)

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

    setOrientation(Int32)

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

    setResolution(Int32, Int32)

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

    showDebugDialog(String)

    Declaration
    public static void showDebugDialog(string message)
    Parameters
    Type Name Description
    String message

    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