withSharedPreferences method

PivoxBuilder withSharedPreferences(
  1. SharedPreferences sharedPreferences
)

Sets the SharedPreferences instance to use

If not provided, a new instance will be created

Implementation

PivoxBuilder withSharedPreferences(SharedPreferences sharedPreferences) {
  _sharedPreferences = sharedPreferences;
  return this;
}