/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.imagepipeline.core;

/** Setter and getter for option about using native code. */
public class NativeCodeSetup {

  private static boolean sUseNativeCode = true;

  private NativeCodeSetup() {}

  /**
   * Setter for useNativeCode option
   *
   * @param useNativeCode true, if you want to use native code
   */
  public static void setUseNativeCode(boolean useNativeCode) {
    sUseNativeCode = useNativeCode;
  }

  /**
   * Getter for useNativeCode option
   *
   * @return true, if you going to use Native code
   */
  public static boolean getUseNativeCode() {
    return sUseNativeCode;
  }
}

Add option to use native code in Fresco
Add option to use native code in Fresco

Summary: Add class with setter and getter for option to use native code in Fresco

Reviewed By: oprisnik

Differential Revision: D17602042

fbshipit-source-id: e098360cd79afa934a6691ea385b22877eb57eb0
