2015-03-12 19:51:44 +00:00
|
|
|
/**
|
2015-03-23 22:07:33 +00: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.
|
2015-03-12 19:51:44 +00:00
|
|
|
*
|
|
|
|
* @providesModule AppStateIOS
|
2015-03-25 02:34:12 +00:00
|
|
|
* @flow
|
2015-03-12 19:51:44 +00:00
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var warning = require('warning');
|
|
|
|
|
|
|
|
class AppStateIOS {
|
|
|
|
|
|
|
|
static addEventListener(type, handler) {
|
2015-09-14 14:35:58 +00:00
|
|
|
warning(false, 'Cannot listen to AppStateIOS events on Android.');
|
2015-03-12 19:51:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static removeEventListener(type, handler) {
|
2015-09-14 14:35:58 +00:00
|
|
|
warning(false, 'Cannot remove AppStateIOS listener on Android.');
|
2015-03-12 19:51:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
AppStateIOS.currentState = null;
|
|
|
|
|
|
|
|
module.exports = AppStateIOS;
|