AppBrain Best Android Apps
AppBrain | Docs
  • Apps
  • Statistics
  • Docs
  • Developers
  • Get SDK
  • Sign up
  • Log in

General

  • Introduction
  • Privacy policy
  • About AppBrain
  • HTML widgets
  • Embeddable Android app widgets

Publishers

  • AppBrain SDK
    • Getting started
    • Ad unit overview
    • Banners
    • Interstitial
    • ListView ads
    • Extra features
    • Integration with other SDKs
    • Integration policy
    • Javadoc
      • AdId
      • AdListAdapter
      • AdListAdapter.AdLayoutCreator
      • AdOptions
      • AdOptions.ScreenType
      • AdService
      • AdService.BorderSize
      • AdService.ReturnToAppConfig
      • AdvertiserService
      • AppBrain
      • AppBrainBanner
      • AppBrainBanner.BannerSize
      • AppBrainInitProvider
      • AppBrainUserData
      • AppBrainUserData.Gender
      • BannerListener
      • InterstitialBuilder
      • InterstitialListener
      • InterstitialListener.InterstitialError
      • KeepClass
      • ReferrerReceiver
      • RemoteSettings
  • Resources
  • Terms of service
  • FAQ

Advertisers

  • Resources
  • Terms of service
  • FAQ

Intelligence

  • Insights
  • Subscriptions
  • SDK downloads
  • Phone downloads
  • Terms of service

AppBrain API

  • Using the AppBrain API
  • API specification
  • Pricing
  • Promotion campaigns
  • Reporting
  • AppLinks TOS
Search

RemoteSettings

public interface RemoteSettings

RemoteSettings is a collection of values that can be sent back by AppBrain’s servers to your Android app. See the remote settings documentation.

You can use getLastUpdateTime() to see if the settings have been fetched already, and if so, when.

Author

AppBrain

Methods

void addListener(Runnable r)

Add a listener to the remote settings that will be called whenever we received settings from the server.

Parameters
  • r – The code to be executed, will be run on a background thread.

String get(String key)

Return a value that was fetched from the server, if present.

Parameters
  • key – The name of the value.

Returns

The value that was set on the server, or null if there was none.

String get(String key, String defaultValue)

Return a value that was fetched from the server, or a default value if none was present.

Parameters
  • key – The name of the value.

Returns

The value that was set on the server, or the default value if there was none.

long getLastUpdateTime()
Returns

The last time the remote settings were fetched from the server. If the remote settings have never been fetched, this returns 0. Otherwise it will return the value of System.currentTimeMillis() at the time of update.

Android App Monetization by AppBrain
Interested in monetizing your app?
Monetize my app

More apps

  • Top Android apps being viewed
  • DashReels: Short Movies & TV
  • Spin Hero APK
  • Poker Casino -Teen Patti Bingo

Android Statistics

  • Android statistics
  • Google Play Developer stats
  • Trending Android Apps
  • Top popular Apps

About AppBrain

  • Contact
  • Blog
  • Privacy
  • Documentation
  • Articles
  • The AppBrain advertising system
© 2010-2024 - AppBrain