package org.meganekkovr;

import android.content.Context;

import org.joml.Quaternionf;

/**
 * Abstraction interface for Activity.
 */
interface MeganekkoContext {
    Context getContext();

    /**
     * Get Meganekko application
     *
     * @return MeganekkoApp
     */
    MeganekkoApp getApp();

    boolean isLookingAt(Entity entity);

    Quaternionf getCenterViewRotation();

    void runOnUiThread(Runnable command);

    void recenterYaw(boolean showBlack);
}

@@ -157,16 +157,91 @@
 ontext %7B
+%0A%0A    /**%0A     * Get android context.%0A     *%0A     * @return Context%0A     */
 %0A    Con
@@ -380,129 +380,634 @@
     
-boolean isLookingAt(Entity entity);%0A%0A    Quaternionf getCenterViewRotation();%0A%0A    void runOnUiThread(Runnable command);%0A
+/**%0A     * Check if user is looking at this entity.%0A     *%0A     * @param entity Target entity.%0A     * @return %7B@code true%7D if user is looking at it. Otherwise %7B@code false%7D.%0A     */%0A    boolean isLookingAt(Entity entity);%0A%0A    /**%0A     * @return Head rotation.%0A     */%0A    Quaternionf getCenterViewRotation();%0A%0A    /**%0A     * Run some code on Android UI thread.%0A     *%0A     * @param command Some code to be run in UI thread.%0A     */%0A    void runOnUiThread(Runnable command);%0A%0A    /**%0A     * Reset forward orientation to current orientation.%0A     *%0A     * @param showBlack %7B@code true%7D to show black frame for a moment.%0A     */
 %0A   

Add javadoc comments