| name | review-case |
| description | Review an existing case implementation against project-specific red lines and coding standards. Use after implementing or modifying a case. Use when: reviewing a case for correctness, checking red-line compliance, verifying lifecycle and threading patterns, auditing an existing Fragment. Keywords: review, audit, check, red lines, lifecycle, threading, compliance.
|
Review Case — APIExample
Run through every item below before considering a case implementation complete.
Open the case's Fragment source file and verify each point against the actual code.
Checklist
Teardown & Lifecycle
Threading
Permissions
Backend Reporting
Private Cloud
If a Check Fails
- Teardown order wrong (
destroy before leaveChannel) — fix teardown to leaveChannel() first, then handler.post(RtcEngine::destroy), and re-test back navigation.
- UI touched in SDK callback without main-thread dispatch — wrap UI updates in
runOnUIThread() and re-run the case to verify no thread exceptions.
- Permission flow missing before
joinChannel() — add checkOrRequestPermission() gate and verify join succeeds only after permission is granted.
- Missing
setParameters(...) or private-cloud null-check — add both safeguards in engine init and re-run the init path once.
NEVER
- NEVER approve a case review with direct
RtcEngine.destroy() on main thread.
- NEVER approve a case review when
leaveChannel() is missing before destroy.
- NEVER ignore background-thread UI updates inside
IRtcEngineEventHandler callbacks.
- NEVER assume runtime behavior is correct without at least one back-navigation teardown check in Logcat.