2015-03-10 12:09:35 -07:00
|
|
|
/**
|
2015-03-23 13:35:08 -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-10 12:09:35 -07:00
|
|
|
*
|
|
|
|
* @providesModule AdSupportIOS
|
2015-03-24 13:26:29 -07:00
|
|
|
* @flow
|
2015-03-10 12:09:35 -07:00
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2015-03-17 22:22:03 -07:00
|
|
|
var AdSupport = require('NativeModules').AdSupport;
|
2015-03-10 12:09:35 -07:00
|
|
|
|
|
|
|
module.exports = {
|
2015-03-24 13:26:29 -07:00
|
|
|
getAdvertisingId: function(onSuccess: Function, onFailure: Function) {
|
2015-03-10 12:09:35 -07:00
|
|
|
AdSupport.getAdvertisingId(onSuccess, onFailure);
|
|
|
|
},
|
2015-03-12 15:57:48 -07:00
|
|
|
|
2015-03-24 13:26:29 -07:00
|
|
|
getAdvertisingTrackingEnabled: function(onSuccess: Function, onFailure: Function) {
|
2015-03-12 15:57:48 -07:00
|
|
|
AdSupport.getAdvertisingTrackingEnabled(onSuccess, onFailure);
|
|
|
|
},
|
2015-03-10 12:09:35 -07:00
|
|
|
};
|