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