Skip to content

Instantly share code, notes, and snippets.

@entdark
Created May 12, 2016 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save entdark/488ee093736c517df5e2f529a9ad03e8 to your computer and use it in GitHub Desktop.
Save entdark/488ee093736c517df5e2f529a9ad03e8 to your computer and use it in GitHub Desktop.
package com.jamme;
public class jaMME
extends android.app.Activity
implements
mono.android.IGCUserPeer
{
/** @hide */
public static final String __md_methods;
static {
__md_methods =
"n_showTextInput:(IIII)Z:__export__\n" +
"n_createGLContext:(IILjava/lang/Object;)Z:__export__\n" +
"n_deleteGLContext:()V:__export__\n" +
"n_setActivityTitle:(Ljava/lang/String;)Z:__export__\n" +
"n_sendMessage:(II)Z:__export__\n" +
"n_getContext:()Landroid/content/Context;:__export__\n" +
"n_flipBuffers:()V:__export__\n" +
"n_audioInit:(IZZI)I:__export__\n" +
"n_audioWriteShortBuffer:(Ljava/lang/Object;)V:__export__\n" +
"n_audioWriteByteBuffer:(Ljava/lang/Object;)V:__export__\n" +
"n_audioQuit:()V:__export__\n" +
"n_onCreate:(Landroid/os/Bundle;)V:GetOnCreate_Landroid_os_Bundle_Handler\n" +
"n_onPause:()V:GetOnPauseHandler\n" +
"n_onResume:()V:GetOnResumeHandler\n" +
"n_onRestart:()V:GetOnRestartHandler\n" +
"n_onStop:()V:GetOnStopHandler\n" +
"n_onDestroy:()V:GetOnDestroyHandler\n" +
"n_onKeyDown:(ILandroid/view/KeyEvent;)Z:GetOnKeyDown_ILandroid_view_KeyEvent_Handler\n" +
"n_onTouchEvent:(Landroid/view/MotionEvent;)Z:GetOnTouchEvent_Landroid_view_MotionEvent_Handler\n" +
"";
mono.android.Runtime.register ("android.jaMME, jamme, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", jaMME.class, __md_methods);
}
public jaMME () throws java.lang.Throwable
{
super ();
if (getClass () == jaMME.class)
mono.android.TypeManager.Activate ("android.jaMME, jamme, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "", this, new java.lang.Object[] { });
}
public static boolean showTextInput (int p0, int p1, int p2, int p3)
{
return n_showTextInput (p0, p1, p2, p3);
}
private static native boolean n_showTextInput (int p0, int p1, int p2, int p3);
public static boolean createGLContext (int p0, int p1, java.lang.Object p2)
{
return n_createGLContext (p0, p1, p2);
}
private static native boolean n_createGLContext (int p0, int p1, java.lang.Object p2);
public static void deleteGLContext ()
{
n_deleteGLContext ();
}
private static native void n_deleteGLContext ();
public static boolean setActivityTitle (java.lang.String p0)
{
return n_setActivityTitle (p0);
}
private static native boolean n_setActivityTitle (java.lang.String p0);
public static boolean sendMessage (int p0, int p1)
{
return n_sendMessage (p0, p1);
}
private static native boolean n_sendMessage (int p0, int p1);
public static android.content.Context getContext ()
{
return n_getContext ();
}
private static native android.content.Context n_getContext ();
public static void flipBuffers ()
{
n_flipBuffers ();
}
private static native void n_flipBuffers ();
public static int audioInit (int p0, boolean p1, boolean p2, int p3)
{
return n_audioInit (p0, p1, p2, p3);
}
private static native int n_audioInit (int p0, boolean p1, boolean p2, int p3);
public static void audioWriteShortBuffer (java.lang.Object p0)
{
n_audioWriteShortBuffer (p0);
}
private static native void n_audioWriteShortBuffer (java.lang.Object p0);
public static void audioWriteByteBuffer (java.lang.Object p0)
{
n_audioWriteByteBuffer (p0);
}
private static native void n_audioWriteByteBuffer (java.lang.Object p0);
public static void audioQuit ()
{
n_audioQuit ();
}
private static native void n_audioQuit ();
public void onCreate (android.os.Bundle p0)
{
n_onCreate (p0);
}
private native void n_onCreate (android.os.Bundle p0);
public void onPause ()
{
n_onPause ();
}
private native void n_onPause ();
public void onResume ()
{
n_onResume ();
}
private native void n_onResume ();
public void onRestart ()
{
n_onRestart ();
}
private native void n_onRestart ();
public void onStop ()
{
n_onStop ();
}
private native void n_onStop ();
public void onDestroy ()
{
n_onDestroy ();
}
private native void n_onDestroy ();
public boolean onKeyDown (int p0, android.view.KeyEvent p1)
{
return n_onKeyDown (p0, p1);
}
private native boolean n_onKeyDown (int p0, android.view.KeyEvent p1);
public boolean onTouchEvent (android.view.MotionEvent p0)
{
return n_onTouchEvent (p0);
}
private native boolean n_onTouchEvent (android.view.MotionEvent p0);
private java.util.ArrayList refList;
public void monodroidAddReference (java.lang.Object obj)
{
if (refList == null)
refList = new java.util.ArrayList ();
refList.add (obj);
}
public void monodroidClearReferences ()
{
if (refList != null)
refList.clear ();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment