本文整理汇总了Java中com.facebook.react.bridge.ReactApplicationContext.getSystemService方法的典型用法代码示例。如果您正苦于以下问题:Java ReactApplicationContext.getSystemService方法的具体用法?Java ReactApplicationContext.getSystemService怎么用?Java ReactApplicationContext.getSystemService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.facebook.react.bridge.ReactApplicationContext
的用法示例。
在下文中一共展示了ReactApplicationContext.getSystemService方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DownloadFileManager
import com.facebook.react.bridge.ReactApplicationContext; //导入方法依赖的package包/类
public DownloadFileManager(ReactApplicationContext reactContext) {
super(reactContext);
mApplicationContext = getReactApplicationContext();
downloadManager = (DownloadManager)reactContext.getSystemService(reactContext.DOWNLOAD_SERVICE);
}
示例2: RCTSensorOrientationChecker
import com.facebook.react.bridge.ReactApplicationContext; //导入方法依赖的package包/类
public RCTSensorOrientationChecker( ReactApplicationContext reactContext) {
mSensorEventListener = new Listener();
mSensorManager = (SensorManager) reactContext.getSystemService(Context.SENSOR_SERVICE);
}
示例3: RNIRManagerModule
import com.facebook.react.bridge.ReactApplicationContext; //导入方法依赖的package包/类
public RNIRManagerModule(ReactApplicationContext reactContext) {
super(reactContext);
manager = (ConsumerIrManager) reactContext.getSystemService(CONSUMER_IR_SERVICE);
}
示例4: RNExitAppModule
import com.facebook.react.bridge.ReactApplicationContext; //导入方法依赖的package包/类
public RNExitAppModule(ReactApplicationContext reactContext) {
super(reactContext);
this.reactContext = reactContext;
alarmManager = (AlarmManager) reactContext.getSystemService(Context.ALARM_SERVICE);
}
示例5: RNImmediatePhoneCallModule
import com.facebook.react.bridge.ReactApplicationContext; //导入方法依赖的package包/类
public RNImmediatePhoneCallModule(ReactApplicationContext reactContext) {
super(reactContext);
this.reactContext = reactContext;
alarmManager = (AlarmManager) reactContext.getSystemService(Context.ALARM_SERVICE);
}
示例6: NetInfoModule
import com.facebook.react.bridge.ReactApplicationContext; //导入方法依赖的package包/类
public NetInfoModule(ReactApplicationContext reactContext) {
super(reactContext);
mConnectivityManager =
(ConnectivityManager) reactContext.getSystemService(Context.CONNECTIVITY_SERVICE);
mConnectivityBroadcastReceiver = new ConnectivityBroadcastReceiver();
}