-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add prop adLanguage; add docs * add native code ios&android for adLanguage props * add missing function to adsLoader and imafactory * Update docs/pages/component/ads.md Language correction Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> --------- Co-authored-by: Guy <guyha@reshet.tv> Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
- Loading branch information
1 parent
9c38d9f
commit 703ed43
Showing
11 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
android/src/main/java/com/google/ads/interactivemedia/v3/api/ImaSdkFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.google.ads.interactivemedia.v3.api; | ||
|
||
public abstract class ImaSdkFactory { | ||
private static ImaSdkFactory instance; | ||
|
||
public abstract ImaSdkSettings createImaSdkSettings(); | ||
|
||
public static ImaSdkFactory getInstance() { | ||
if (instance == null) { | ||
instance = new ConcreteImaSdkFactory(); | ||
} | ||
return instance; | ||
} | ||
} | ||
|
||
class ConcreteImaSdkFactory extends ImaSdkFactory { | ||
|
||
@Override | ||
public ImaSdkSettings createImaSdkSettings() { | ||
return new ConcreteImaSdkSettings(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
android/src/main/java/com/google/ads/interactivemedia/v3/api/ImaSdkSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.google.ads.interactivemedia.v3.api; | ||
|
||
import androidx.annotation.InspectableProperty; | ||
|
||
public abstract class ImaSdkSettings { | ||
public abstract String getLanguage(); | ||
public abstract void setLanguage(String language); | ||
} | ||
|
||
// Concrete Implementation | ||
class ConcreteImaSdkSettings extends ImaSdkSettings { | ||
|
||
private String language; | ||
|
||
@Override | ||
public String getLanguage() { | ||
return language; | ||
} | ||
|
||
@Override | ||
public void setLanguage(String language) { | ||
this.language = language; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters