Skip to content

Commit

Permalink
RUM-6218: Modify api naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmos committed Oct 9, 2024
1 parent 11ed3d1 commit fa68b66
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion features/dd-sdk-android-session-replay/api/apiSurface
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data class com.datadog.android.sessionreplay.MapperTypeWrapper<T: android.view.V
constructor(Class<T>, com.datadog.android.sessionreplay.recorder.mapper.WireframeMapper<T>)
fun supportsView(android.view.View): Boolean
fun getUnsafeMapper(): com.datadog.android.sessionreplay.recorder.mapper.WireframeMapper<android.view.View>
fun android.view.View.datadogSessionReplayHidden(Boolean)
fun android.view.View.setSessionReplayHidden(Boolean)
object com.datadog.android.sessionreplay.SessionReplay
fun enable(SessionReplayConfiguration, com.datadog.android.api.SdkCore = Datadog.getInstance())
fun startRecording(com.datadog.android.api.SdkCore = Datadog.getInstance())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class com/datadog/android/sessionreplay/MapperTypeWrapper {
}

public final class com/datadog/android/sessionreplay/PrivacyOverrideExtensionsKt {
public static final fun datadogSessionReplayHidden (Landroid/view/View;Z)V
public static final fun setSessionReplayHidden (Landroid/view/View;Z)V
}

public final class com/datadog/android/sessionreplay/SessionReplay {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import android.view.View
*
* @param hide pass `true` to hide the view, or `false` to remove the override
*/
fun View.datadogSessionReplayHidden(hide: Boolean) {
fun View.setSessionReplayHidden(hide: Boolean) {
if (hide) {
this.setTag(R.id.datadog_hidden, true)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal class PrivacyOverrideExtensionsTest {
val mockView = mock<View>()

// When
mockView.datadogSessionReplayHidden(true)
mockView.setSessionReplayHidden(true)

// Then
verify(mockView).setTag(eq(R.id.datadog_hidden), eq(true))
Expand All @@ -47,7 +47,7 @@ internal class PrivacyOverrideExtensionsTest {
val mockView = mock<View>()

// When
mockView.datadogSessionReplayHidden(false)
mockView.setSessionReplayHidden(false)

// Then
verify(mockView).setTag(eq(R.id.datadog_hidden), isNull())
Expand Down

0 comments on commit fa68b66

Please sign in to comment.