With new banner API the currently existing ChartboostMediationBannerAdSize enum is converted into a class and the existing values are replaced with static variables to support backward compatibility. This means
class ChartboostMediationBannerAdSize {
public static readonly ChartboostMediationBannerAdSize Standard;
public static readonly ChartboostMediationBannerAdSize Medium;
public static readonly ChartboostMediationBannerAdSize Leaderboard;
}
This may work while requesting a fixed size banner without breaking old API but will break publisher's code if they are using enum related properties of this size object. For example, if pubs are using this enum's int value to compare sizes their code will break since this is no longer an enum but a class
With this PR, we will keep the original size enum as it is to have the deprecated APIs working and create a new size class ChartboostMediationBannerSize (no Ad in name ) which will simply be a rename of ChartboostMediationBannerAdSize to ChartboostMediationBannerSize
With new banner API the currently existing
ChartboostMediationBannerAdSize
enum is converted into a class and the existing values are replaced with static variables to support backward compatibility. This meansbecomes
This may work while requesting a fixed size banner without breaking old API but will break publisher's code if they are using enum related properties of this size object. For example, if pubs are using this enum's int value to compare sizes their code will break since this is no longer an enum but a class
With this PR, we will keep the original size enum as it is to have the deprecated APIs working and create a new size class
ChartboostMediationBannerSize
(no Ad in name ) which will simply be a rename ofChartboostMediationBannerAdSize
toChartboostMediationBannerSize