Closed tanaynigam closed 2 years ago
We're using delegate styles in specific scenarios such as OSUpdateLanguageSuccessBlock
, OSEmailSuccessBlock
and OSEmailFailureBlock
predefined in the bindings that do not take any arguments in their delegate causing lambda functions to throw errors
Description
One Line Summary
Add SetLanguage callback implementation to OneSignal Xamarin
Details
Motivation
SetLanguage callback returns true or false to signify success or failure when executing the setLanguage method on an app.
Scope
SetLanguage
method type fromvoid
toTask<>
inOneSignalSDKInternal
of CoreAndroid
OSLanguageUpdateHandler
sealed class using theIOSSetLanguageCompletionHandler
interfaceSetLanguage
method type fromvoid
toTask<>
iOS
SetLanguage
method type fromvoid
toTask<>
BooleanCallbackProxy
to the methodSetLanguage
Testing
Manual testing
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is![Reviewable](https://reviewable.io/review_button.svg)