Files
yoga/lib/fb/src/main/java/com/facebook/jni/NativeRunnable.java

29 lines
706 B
Java
Raw Normal View History

/**
2016-08-31 16:15:15 +01:00
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.jni;
import com.facebook.jni.HybridData;
2016-08-31 16:15:15 +01:00
import com.facebook.proguard.annotations.DoNotStrip;
/**
* A Runnable that has a native run implementation.
*/
2016-08-31 16:15:15 +01:00
@DoNotStrip
public class NativeRunnable implements Runnable {
2016-08-31 16:15:15 +01:00
private final HybridData mHybridData;
2016-08-31 16:15:15 +01:00
private NativeRunnable(HybridData hybridData) {
mHybridData = hybridData;
2016-08-31 16:15:15 +01:00
}
public native void run();
2016-08-31 16:15:15 +01:00
}