-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RUMM-2777 SR add dialogs recording support
- Loading branch information
Showing
20 changed files
with
1,282 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 0 additions & 54 deletions
54
...play/src/main/kotlin/com/datadog/android/sessionreplay/recorder/RecorderOnDrawListener.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...y/src/main/kotlin/com/datadog/android/sessionreplay/recorder/callback/MotionEventUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. | ||
* This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
* Copyright 2016-Present Datadog, Inc. | ||
*/ | ||
|
||
package com.datadog.android.sessionreplay.recorder.callback | ||
|
||
import android.os.Build | ||
import android.view.MotionEvent | ||
|
||
internal class MotionEventUtils { | ||
|
||
// For Android SDK < 29 we will have to know the target View on which this event happened | ||
// and then to compute the absolute as target.absoluteX,Y + event.getX,Y(pointerIndex) | ||
// This will not be handled now as it is too complex and not very optimised. For now we will | ||
// not support multi finger gestures in the player for version < 29. | ||
fun getPointerAbsoluteX(event: MotionEvent, pointerIndex: Int): Float { | ||
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { | ||
event.getRawX(pointerIndex) | ||
} else { | ||
return event.rawX | ||
} | ||
} | ||
|
||
fun getPointerAbsoluteY(event: MotionEvent, pointerIndex: Int): Float { | ||
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { | ||
event.getRawY(pointerIndex) | ||
} else { | ||
return event.rawY | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.