2015-03-10 19:09:35 +00:00
|
|
|
/**
|
2015-03-23 20:35:08 +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-10 19:09:35 +00:00
|
|
|
*
|
|
|
|
* @providesModule AdSupportIOS
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2015-03-18 05:22:03 +00:00
|
|
|
var AdSupport = require('NativeModules').AdSupport;
|
2015-03-10 19:09:35 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
getAdvertisingId: function(onSuccess, onFailure) {
|
|
|
|
AdSupport.getAdvertisingId(onSuccess, onFailure);
|
|
|
|
},
|
2015-03-12 22:57:48 +00:00
|
|
|
|
|
|
|
getAdvertisingTrackingEnabled: function(onSuccess, onFailure) {
|
|
|
|
AdSupport.getAdvertisingTrackingEnabled(onSuccess, onFailure);
|
|
|
|
},
|
2015-03-10 19:09:35 +00:00
|
|
|
};
|