Skip to content

Commit

Permalink
V4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Loesch authored and Frédéric Loesch committed Jul 6, 2023
1 parent dea08c6 commit b94e9a2
Show file tree
Hide file tree
Showing 14 changed files with 103 additions and 156 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# SDK Changelog

- Version 4.2.1
- Fixed a bug causing an exception when redisplaying a rich push notification
- Fixed a bug causing an empty notification to appear when redisplaying a notification although none had been received yet.
- Added robustness when deserializing events

- Version 4.2.0
- Removed all references to PlotProject
- Deprecated all geolocation related methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# fromInteger

[androidJvm]\
open fun [fromInteger](from-integer.md)(x: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)
open fun [fromInteger](from-integer.md)(x: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [SMContentType](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Enum listing the different types of In App Content

| Name | Summary |
|---|---|
| [fromInteger](from-integer.md) | [androidJvm]<br>open fun [fromInteger](from-integer.md)(x: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |
| [fromInteger](from-integer.md) | [androidJvm]<br>open fun [fromInteger](from-integer.md)(x: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [SMContentType](index.md) |
| [getValue](get-value.md) | [androidJvm]<br>open fun [getValue](get-value.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |
| [valueOf](value-of.md) | [androidJvm]<br>open fun [valueOf](value-of.md)(name: [String](https://developer.android.com/reference/kotlin/java/lang/String.html)): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |
| [values](values.md) | [androidJvm]<br>open fun [values](values.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)&gt; |
| [valueOf](value-of.md) | [androidJvm]<br>open fun [valueOf](value-of.md)(name: [String](https://developer.android.com/reference/kotlin/java/lang/String.html)): [SMContentType](index.md) |
| [values](values.md) | [androidJvm]<br>open fun [values](values.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[SMContentType](index.md)&gt; |
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# valueOf

[androidJvm]\
open fun [valueOf](value-of.md)(name: [String](https://developer.android.com/reference/kotlin/java/lang/String.html)): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)
open fun [valueOf](value-of.md)(name: [String](https://developer.android.com/reference/kotlin/java/lang/String.html)): [SMContentType](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# values

[androidJvm]\
open fun [values](values.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)&gt;
open fun [values](values.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[SMContentType](index.md)&gt;
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This class implements a fragment that will display one or several HTML contents.
| [getChildFragmentManager](../-s-m-in-app-content-url-fragment/index.md#-1694755202%2FFunctions%2F462465411) | [androidJvm]<br>fun [getChildFragmentManager](../-s-m-in-app-content-url-fragment/index.md#-1694755202%2FFunctions%2F462465411)(): [FragmentManager](https://developer.android.com/reference/kotlin/androidx/fragment/app/FragmentManager.html) |
| [getContentCategory](../-s-m-in-app-content-url-fragment/index.md#1316143241%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentCategory](../-s-m-in-app-content-url-fragment/index.md#1316143241%2FFunctions%2F462465411)(): [String](https://developer.android.com/reference/kotlin/java/lang/String.html)<br>This method returns the category given at the creation of the instance of SMInAppContentFragment |
| [getContentCount](../-s-m-in-app-content-url-fragment/index.md#-585073212%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentCount](../-s-m-in-app-content-url-fragment/index.md#-585073212%2FFunctions%2F462465411)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)<br>This method returns the number of contents in the fragment |
| [getContentType](../-s-m-in-app-content-url-fragment/index.md#-1879818547%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentType](../-s-m-in-app-content-url-fragment/index.md#-1879818547%2FFunctions%2F462465411)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)<br>This method returns the type given at the creation of the instance of SMInAppContentFragment |
| [getContentType](../-s-m-in-app-content-url-fragment/index.md#-1879818547%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentType](../-s-m-in-app-content-url-fragment/index.md#-1879818547%2FFunctions%2F462465411)(): [SMContentType](../-s-m-content-type/index.md)<br>This method returns the type given at the creation of the instance of SMInAppContentFragment |
| [getContext](../-s-m-in-app-content-url-fragment/index.md#1977143180%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContext](../-s-m-in-app-content-url-fragment/index.md#1977143180%2FFunctions%2F462465411)(): [Context](https://developer.android.com/reference/kotlin/android/content/Context.html) |
| [getDefaultViewModelCreationExtras](../-s-m-in-app-content-url-fragment/index.md#-248120917%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getDefaultViewModelCreationExtras](../-s-m-in-app-content-url-fragment/index.md#-248120917%2FFunctions%2F462465411)(): [CreationExtras](https://developer.android.com/reference/kotlin/androidx/lifecycle/viewmodel/CreationExtras.html) |
| [getDefaultViewModelProviderFactory](../-s-m-in-app-content-url-fragment/index.md#1905320965%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getDefaultViewModelProviderFactory](../-s-m-in-app-content-url-fragment/index.md#1905320965%2FFunctions%2F462465411)(): [ViewModelProvider.Factory](https://developer.android.com/reference/kotlin/androidx/lifecycle/ViewModelProvider.Factory.html) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This class implements a fragment that will display In App Content containing an
| [getChildFragmentManager](../-s-m-in-app-content-url-fragment/index.md#-1694755202%2FFunctions%2F462465411) | [androidJvm]<br>fun [getChildFragmentManager](../-s-m-in-app-content-url-fragment/index.md#-1694755202%2FFunctions%2F462465411)(): [FragmentManager](https://developer.android.com/reference/kotlin/androidx/fragment/app/FragmentManager.html) |
| [getContentCategory](../-s-m-in-app-content-url-fragment/index.md#1316143241%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentCategory](../-s-m-in-app-content-url-fragment/index.md#1316143241%2FFunctions%2F462465411)(): [String](https://developer.android.com/reference/kotlin/java/lang/String.html)<br>This method returns the category given at the creation of the instance of SMInAppContentFragment |
| [getContentCount](../-s-m-in-app-content-url-fragment/index.md#-585073212%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentCount](../-s-m-in-app-content-url-fragment/index.md#-585073212%2FFunctions%2F462465411)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)<br>This method returns the number of contents in the fragment |
| [getContentType](../-s-m-in-app-content-url-fragment/index.md#-1879818547%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentType](../-s-m-in-app-content-url-fragment/index.md#-1879818547%2FFunctions%2F462465411)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)<br>This method returns the type given at the creation of the instance of SMInAppContentFragment |
| [getContentType](../-s-m-in-app-content-url-fragment/index.md#-1879818547%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentType](../-s-m-in-app-content-url-fragment/index.md#-1879818547%2FFunctions%2F462465411)(): [SMContentType](../-s-m-content-type/index.md)<br>This method returns the type given at the creation of the instance of SMInAppContentFragment |
| [getContext](../-s-m-in-app-content-url-fragment/index.md#1977143180%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContext](../-s-m-in-app-content-url-fragment/index.md#1977143180%2FFunctions%2F462465411)(): [Context](https://developer.android.com/reference/kotlin/android/content/Context.html) |
| [getDefaultViewModelCreationExtras](../-s-m-in-app-content-url-fragment/index.md#-248120917%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getDefaultViewModelCreationExtras](../-s-m-in-app-content-url-fragment/index.md#-248120917%2FFunctions%2F462465411)(): [CreationExtras](https://developer.android.com/reference/kotlin/androidx/lifecycle/viewmodel/CreationExtras.html) |
| [getDefaultViewModelProviderFactory](../-s-m-in-app-content-url-fragment/index.md#1905320965%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getDefaultViewModelProviderFactory](../-s-m-in-app-content-url-fragment/index.md#1905320965%2FFunctions%2F462465411)(): [ViewModelProvider.Factory](https://developer.android.com/reference/kotlin/androidx/lifecycle/ViewModelProvider.Factory.html) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This class implements a fragment that will display In App Content containing an
| [getChildFragmentManager](index.md#-1694755202%2FFunctions%2F462465411) | [androidJvm]<br>fun [getChildFragmentManager](index.md#-1694755202%2FFunctions%2F462465411)(): [FragmentManager](https://developer.android.com/reference/kotlin/androidx/fragment/app/FragmentManager.html) |
| [getContentCategory](index.md#1316143241%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentCategory](index.md#1316143241%2FFunctions%2F462465411)(): [String](https://developer.android.com/reference/kotlin/java/lang/String.html)<br>This method returns the category given at the creation of the instance of SMInAppContentFragment |
| [getContentCount](index.md#-585073212%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentCount](index.md#-585073212%2FFunctions%2F462465411)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)<br>This method returns the number of contents in the fragment |
| [getContentType](index.md#-1879818547%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentType](index.md#-1879818547%2FFunctions%2F462465411)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)<br>This method returns the type given at the creation of the instance of SMInAppContentFragment |
| [getContentType](index.md#-1879818547%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContentType](index.md#-1879818547%2FFunctions%2F462465411)(): [SMContentType](../-s-m-content-type/index.md)<br>This method returns the type given at the creation of the instance of SMInAppContentFragment |
| [getContext](index.md#1977143180%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getContext](index.md#1977143180%2FFunctions%2F462465411)(): [Context](https://developer.android.com/reference/kotlin/android/content/Context.html) |
| [getDefaultViewModelCreationExtras](index.md#-248120917%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getDefaultViewModelCreationExtras](index.md#-248120917%2FFunctions%2F462465411)(): [CreationExtras](https://developer.android.com/reference/kotlin/androidx/lifecycle/viewmodel/CreationExtras.html) |
| [getDefaultViewModelProviderFactory](index.md#1905320965%2FFunctions%2F462465411) | [androidJvm]<br>open fun [getDefaultViewModelProviderFactory](index.md#1905320965%2FFunctions%2F462465411)(): [ViewModelProvider.Factory](https://developer.android.com/reference/kotlin/androidx/lifecycle/ViewModelProvider.Factory.html) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ An In App content
| [displayMode](display-mode.md) | [androidJvm]<br>open val [displayMode](display-mode.md): [SMInAppContent.DisplayMode](-display-mode/index.md) |
| [image](image.md) | [androidJvm]<br>@get:[Nullable](https://developer.android.com/reference/kotlin/androidx/annotation/Nullable.html)<br>open val [image](image.md): [Bitmap](https://developer.android.com/reference/kotlin/android/graphics/Bitmap.html) |
| [links](links.md) | [androidJvm]<br>open val [links](links.md): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[SMLink](../-s-m-link/index.md)&gt; |
| [type](type.md) | [androidJvm]<br>open val [type](type.md): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |
| [type](type.md) | [androidJvm]<br>open val [type](type.md): [SMContentType](../-s-m-content-type/index.md) |
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# type

[androidJvm]\
open val [type](type.md): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)
open val [type](type.md): [SMContentType](../-s-m-content-type/index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# getInAppContents

[androidJvm]\
open fun [getInAppContents](get-in-app-contents.md)(category: [String](https://developer.android.com/reference/kotlin/java/lang/String.html), type: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), max: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [ArrayList](https://developer.android.com/reference/kotlin/java/util/ArrayList.html)&lt;[SMInAppContent](../-s-m-in-app-content/index.md)&gt;
open fun [getInAppContents](get-in-app-contents.md)(category: [String](https://developer.android.com/reference/kotlin/java/lang/String.html), type: [SMContentType](../-s-m-content-type/index.md), max: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [ArrayList](https://developer.android.com/reference/kotlin/java/util/ArrayList.html)&lt;[SMInAppContent](../-s-m-in-app-content/index.md)&gt;

Gets the list of valid [SMInAppContent](../-s-m-in-app-content/index.md) for the given type and category. Use this method if you do not want to implement our Fragments.

Expand All @@ -22,7 +22,7 @@ androidJvm
| max | The number of contents to get. -1 to get them all. |

[androidJvm]\
open fun [getInAppContents](get-in-app-contents.md)(category: [String](https://developer.android.com/reference/kotlin/java/lang/String.html), type: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), max: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbackEvent: [SMInAppContentReturn](../-s-m-in-app-content-return/index.md))
open fun [getInAppContents](get-in-app-contents.md)(category: [String](https://developer.android.com/reference/kotlin/java/lang/String.html), type: [SMContentType](../-s-m-content-type/index.md), max: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbackEvent: [SMInAppContentReturn](../-s-m-in-app-content-return/index.md))

Gets the list of valid [SMInAppContent](../-s-m-in-app-content/index.md) for the given type and category. Use this method if you do not want to implement our Fragments.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Singleton object used to interact with the Selligent Mobile SDK.
| [executeLinkAction](execute-link-action.md) | [androidJvm]<br>open fun [executeLinkAction](execute-link-action.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), link: [SMLink](../-s-m-link/index.md), content: [SMInAppContent](../-s-m-in-app-content/index.md))<br>This method will execute the action attached to the given [SMLink](../-s-m-link/index.md) of the given [SMInAppContent](../-s-m-in-app-content/index.md). |
| [getDeviceId](get-device-id.md) | [androidJvm]<br>open fun [getDeviceId](get-device-id.md)(): [String](https://developer.android.com/reference/kotlin/java/lang/String.html)<br>This methods returns the device id stored by the SDK after registering to the Selligent Mobile platform. |
| [getGCMToken](get-g-c-m-token.md) | [androidJvm]<br>open fun [getGCMToken](get-g-c-m-token.md)(): [String](https://developer.android.com/reference/kotlin/java/lang/String.html)<br>This methods returns the GCM token stored by the SDK. |
| [getInAppContents](get-in-app-contents.md) | [androidJvm]<br>open fun [getInAppContents](get-in-app-contents.md)(category: [String](https://developer.android.com/reference/kotlin/java/lang/String.html), type: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), max: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [ArrayList](https://developer.android.com/reference/kotlin/java/util/ArrayList.html)&lt;[SMInAppContent](../-s-m-in-app-content/index.md)&gt;<br>open fun [getInAppContents](get-in-app-contents.md)(category: [String](https://developer.android.com/reference/kotlin/java/lang/String.html), type: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), max: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbackEvent: [SMInAppContentReturn](../-s-m-in-app-content-return/index.md))<br>Gets the list of valid [SMInAppContent](../-s-m-in-app-content/index.md) for the given type and category. |
| [getInAppContents](get-in-app-contents.md) | [androidJvm]<br>open fun [getInAppContents](get-in-app-contents.md)(category: [String](https://developer.android.com/reference/kotlin/java/lang/String.html), type: [SMContentType](../-s-m-content-type/index.md), max: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [ArrayList](https://developer.android.com/reference/kotlin/java/util/ArrayList.html)&lt;[SMInAppContent](../-s-m-in-app-content/index.md)&gt;<br>open fun [getInAppContents](get-in-app-contents.md)(category: [String](https://developer.android.com/reference/kotlin/java/lang/String.html), type: [SMContentType](../-s-m-content-type/index.md), max: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), callbackEvent: [SMInAppContentReturn](../-s-m-in-app-content-return/index.md))<br>Gets the list of valid [SMInAppContent](../-s-m-in-app-content/index.md) for the given type and category. |
| [getInAppMessages](get-in-app-messages.md) | [androidJvm]<br>open fun [getInAppMessages](get-in-app-messages.md)(callbackEvent: [SMInAppMessageReturn](../-s-m-in-app-message-return/index.md))<br>Gets the list of all [SMInAppMessage](../-s-m-in-app-message/index.md) currently stored by the SDK, unfiltered. |
| [getInstance](get-instance.md) | [androidJvm]<br>open fun [getInstance](get-instance.md)(): [SMManager](index.md) |
| [getLastRemotePushNotification](get-last-remote-push-notification.md) | [androidJvm]<br>open fun [getLastRemotePushNotification](get-last-remote-push-notification.md)(): [HashMap](https://developer.android.com/reference/kotlin/java/util/HashMap.html)&lt;[String](https://developer.android.com/reference/kotlin/java/lang/String.html), [String](https://developer.android.com/reference/kotlin/java/lang/String.html)&gt;<br>Get the id and the title of the latest received remote notification This is mostly used in conjunction with RemoteMessageDisplayType set to None |
Expand Down
Loading

0 comments on commit b94e9a2

Please sign in to comment.