Class SodiumAndroid

java.lang.Object
com.goterl.lazysodium.Sodium
com.goterl.lazysodium.SodiumAndroid

public class SodiumAndroid extends Sodium
  • Constructor Details

    • SodiumAndroid

      public SodiumAndroid()
    • SodiumAndroid

      public SodiumAndroid(String path)
      If on the Android platform, then this is the intended route to load a libsodium native library. Please note loading for Android is not the same as loading for Java. The path must be to a directory with all the Android ABIs, which each contain the libsodium.so. For example, given /path/to/ABI1/, /path/to/THE_ABI2/ and /path/to/THE_ABI3/, the param path should be /path/to/. ABI1, ABI2 and ABI3 must all contain libsodium.so/libsodium.dylib/libsodium.dll built for that specific ABI.
      Parameters:
      path - Absolute path to the parent directory of all the ABI directories.