Пример #1
0
 @Override
 public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
   InternalSettings.setCustomUserAgent(VERSION_TO_RELEASE);
   return Arrays.<NativeModule>asList(
       new FBAccessTokenModule(reactContext),
       new FBAppEventsLoggerModule(reactContext),
       new FBAppInviteDialogModule(reactContext, mCallbackManager),
       new FBGameRequestDialogModule(reactContext, mCallbackManager),
       new FBGraphRequestModule(reactContext),
       new FBLoginManagerModule(reactContext, mCallbackManager),
       new FBMessageDialogModule(reactContext, mCallbackManager),
       new FBShareAPIModule(reactContext),
       new FBShareDialogModule(reactContext, mCallbackManager));
 }
Пример #2
0
 @UnityCallable
 public static void SetUserAgentSuffix(String suffix) {
   Log.v(TAG, "SetUserAgentSuffix(" + suffix + ")");
   InternalSettings.setCustomUserAgent(suffix);
 }