-
public final class EmbeddedCareThe primary interaction point with Felt's embedded care features
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEmbeddedCare.Companion
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getScope()final AccountgetAccount()Provides details about the current user account. final UnitsetAccount(Account account)final Unitinitialize(AppCompatActivity initialActivity, String sdkKey)Call this at app launch to initialize the sdk. final UnitpresentExperience(FullScreenExperience experience, String source)Presents a full screen experience modally final BooleanhandleURL(String url)In your app's deep-link handling code, call this to check if the url deep-links to embedded care content. final BooleanhandleNotification(Map<String, String> data)In your app's push notification handling code, call this to check if the notification deep-links to embedded care content. final BooleanhandleNotification(Bundle data)In your app's push notification handling code, call this to check if the notification deep-links to embedded care content. -
-
Method Detail
-
getScope
final <ERROR CLASS> getScope()
-
getAccount
final Account getAccount()
Provides details about the current user account. Update this as information about the currently logged in user changes.
-
setAccount
final Unit setAccount(Account account)
-
initialize
final Unit initialize(AppCompatActivity initialActivity, String sdkKey)
Call this at app launch to initialize the sdk.
- Parameters:
sdkKey- Felt's provided sdk key for your client
-
presentExperience
final Unit presentExperience(FullScreenExperience experience, String source)
Presents a full screen experience modally
- Parameters:
source- Allows the client to provide information about the presentation source for tracking purposes
-
handleURL
final Boolean handleURL(String url)
In your app's deep-link handling code, call this to check if the url deep-links to embedded care content.
-
handleNotification
final Boolean handleNotification(Map<String, String> data)
In your app's push notification handling code, call this to check if the notification deep-links to embedded care content.
-
handleNotification
final Boolean handleNotification(Bundle data)
In your app's push notification handling code, call this to check if the notification deep-links to embedded care content.
-
-
-
-