本文整理汇总了Java中org.robovm.rt.bro.annotation.Pointer类的典型用法代码示例。如果您正苦于以下问题:Java Pointer类的具体用法?Java Pointer怎么用?Java Pointer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Pointer类属于org.robovm.rt.bro.annotation包,在下文中一共展示了Pointer类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setupAccelerometer
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
private void setupAccelerometer () {
if (config.useAccelerometer) {
accelerometerDelegate = new UIAccelerometerDelegateAdapter() {
@Method(selector = "accelerometer:didAccelerate:")
public void didAccelerate (UIAccelerometer accelerometer, @Pointer long valuesPtr) {
UIAcceleration values = UI_ACCELERATION_WRAPPER.wrap(valuesPtr);
float x = (float)values.getX() * 10;
float y = (float)values.getY() * 10;
float z = (float)values.getZ() * 10;
acceleration[0] = -x;
acceleration[1] = -y;
acceleration[2] = -z;
}
};
UIAccelerometer.getSharedAccelerometer().setDelegate(accelerometerDelegate);
UIAccelerometer.getSharedAccelerometer().setUpdateInterval(config.accelerometerUpdate);
}
}
开发者ID:basherone,项目名称:libgdxcn,代码行数:21,代码来源:IOSInput.java
示例2: onPacketsParsed
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Override
public void onPacketsParsed(int numberBytes, @Pointer long inputData,
AudioStreamPacketDescription[] packetDescriptions) {
try {
AudioQueueBuffer buffer = audioQueue.allocateBuffer(numberBytes);
buffer.setAudioData(inputData, numberBytes);
// FIXME enqueueBuffer makes audioQueue.start() fail
audioQueue.enqueueBuffer(buffer, packetDescriptions);
totalPacketsReceived += packetDescriptions.length;
if (!audioQueue.isRunning() && totalPacketsReceived > 100) {
audioQueue.start();
}
} catch (OSStatusException e) {
throw new Error(e);
}
}
开发者ID:robovm,项目名称:robovm-samples,代码行数:20,代码来源:WebRadioPlayer.java
示例3: setupAccelerometer
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
private void setupAccelerometer() {
if (config.useAccelerometer) {
accelerometerDelegate = new UIAccelerometerDelegateAdapter() {
@Method(selector = "accelerometer:didAccelerate:")
public void didAccelerate(UIAccelerometer accelerometer, @Pointer long valuesPtr) {
UIAcceleration values = UI_ACCELERATION_WRAPPER.wrap(valuesPtr);
float x = (float) values.getX() * 10;
float y = (float) values.getY() * 10;
float z = (float) values.getZ() * 10;
acceleration[0] = -x;
acceleration[1] = -y;
acceleration[2] = -z;
}
};
UIAccelerometer.getSharedAccelerometer().setDelegate(accelerometerDelegate);
UIAccelerometer.getSharedAccelerometer().setUpdateInterval(config.accelerometerUpdate);
}
}
开发者ID:mini2Dx,项目名称:mini2Dx,代码行数:21,代码来源:IOSMini2DxInput.java
示例4: initWithPublisherId
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "initWithPublisherId:")
public native @Pointer long initWithPublisherId(String publisherId);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:3,代码来源:DMTools.java
示例5: initWithPublisherId
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "initWithPublisherId:placementId:window:")
public native @Pointer long initWithPublisherId(String publisherId, String placementId, UIWindow window);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:3,代码来源:DMSplashAdController.java
示例6: initWithPublisherId
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "initWithPublisherId:placementId:")
public native @Pointer
long initWithPublisherId(String publisherId, String placementId);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:4,代码来源:DMAdView.java
示例7: initWithPublisherId
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "initWithPublisherId:placementId:rootViewController:")
public native @Pointer long initWithPublisherId(String publisherId, String placementId, UIViewController UIViewController);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:3,代码来源:DMInterstitialAdController.java
示例8: initWithPublisherId
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "initWithPublisherId:placementId:origin:")
public native @Pointer
long initWithPublisherId(String publisherId, String placementId,
CGPoint adOrigin);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:5,代码来源:DMFeedsAdView.java
示例9: initWithAdUnitID
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "initWithAdUnitID:")
public native @Pointer long initWithAdUnitID(String adUnitID);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:3,代码来源:GADInterstitial.java
示例10: init
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "initWithAdSize:")
private native @Pointer long init (@ByVal GADAdSize size);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:3,代码来源:GADBannerView.java
示例11: init
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "init")
public native @Pointer long init();
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:3,代码来源:BmobEvent.java
示例12: allObjects
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "allObjects")
public static native @Pointer long allObjects (@Pointer long thiz);
开发者ID:basherone,项目名称:libgdxcn,代码行数:3,代码来源:IOSInput.java
示例13:
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "objectAtIndex:")
public static native @Pointer long objectAtIndex$ (@Pointer long thiz, @MachineSizedUInt long index);
开发者ID:basherone,项目名称:libgdxcn,代码行数:3,代码来源:IOSInput.java
示例14: count
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "count")
public static native @MachineSizedUInt long count (@Pointer long thiz);
开发者ID:basherone,项目名称:libgdxcn,代码行数:3,代码来源:IOSInput.java
示例15: init
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "initWithAdSize:")
private native @Pointer
long init (@ByVal GADAdSize size);
开发者ID:pierotofy,项目名称:snappyfrog,代码行数:4,代码来源:GADBannerView.java
示例16: allObjects
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "allObjects")
public static native @Pointer long allObjects(@Pointer long thiz);
开发者ID:mini2Dx,项目名称:mini2Dx,代码行数:3,代码来源:IOSMini2DxInput.java
示例17:
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "objectAtIndex:")
public static native @Pointer long objectAtIndex$(@Pointer long thiz, @MachineSizedUInt long index);
开发者ID:mini2Dx,项目名称:mini2Dx,代码行数:3,代码来源:IOSMini2DxInput.java
示例18: count
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
@Method(selector = "count")
public static native @MachineSizedUInt long count(@Pointer long thiz);
开发者ID:mini2Dx,项目名称:mini2Dx,代码行数:3,代码来源:IOSMini2DxInput.java
示例19: init
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
/**
* 初始化方法,在发送微博结束的回调方法使用此初始化方法
*
* @param platformType
* 微博平台类型
* @param weiboId
* 微博id,可以设置为nil
* @param userId
* 用户id
* @param param
* 微博平台自定义字段,可以设置为nil
* @return 微博对象
*/
// -(id)initWithPlatformType:(MobClickSocialTypeString)platformType
// weiboId:(NSString *)weiboId usid:(NSString *)usid param:(NSDictionary
// *)param;
@Method(selector = "initWithPlatformType:weiboId:usid:param:")
public native @Pointer long init(String platformType, String weiboId, String usid, NSDictionary param);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:19,代码来源:MobClickSocialWeibo.java
示例20: initWithLongitude
import org.robovm.rt.bro.annotation.Pointer; //导入依赖的package包/类
/**
* 初始化BmobGeoPoint
*
* @param mylongitude 经度
* @param mylatitude 纬度
*
* @return 返回BmobGeoPoint对象
*/
//-(id)initWithLongitude:(double)mylongitude WithLatitude:(double)mylatitude;
@Method(selector = "initWithLongitude:WithLatitude:")
public native @Pointer long initWithLongitude(double mylongitude, double mylatitude);
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:12,代码来源:BmobGeoPoint.java
注:本文中的org.robovm.rt.bro.annotation.Pointer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论