You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.6 KiB

  1. // Copyright (C) 2017 Google, Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. namespace GoogleMobileAds.Common
  15. {
  16. public interface IMobileAdsClient
  17. {
  18. // Initialize the Mobile Ads SDK.
  19. void Initialize(string appId);
  20. // The application’s audio volume. Affects audio volumes of all ads relative
  21. // to other audio output. Valid ad volume values range from 0.0 (silent) to 1.0
  22. // (current device volume). Use this method only if your application has its own
  23. // volume controls (e.g., custom music or sound effect volumes). Defaults to 1.0.
  24. void SetApplicationVolume(float volume);
  25. // Indicates if the application’s audio is muted. Affects initial mute state for
  26. // all ads. Use this method only if your application has its own volume controls
  27. // (e.g., custom music or sound effect muting). Defaults to false.
  28. void SetApplicationMuted(bool muted);
  29. // Set whether an iOS app should pause when a full screen ad is displayed.
  30. void SetiOSAppPauseOnBackground(bool pause);
  31. }
  32. }