M1 공유 타겟(U1)+M2 저장 진행 알림: ACTION_SEND 인텐트 필터+ShareTarget/SharePayload(RED 7건)+루트 타이머 큐 전송(am start 인텐트 E2E로 서버 큐 반영 실증), 오프라인 저장 Android ProgressBar 노티(5% 스로틀)→폰 저장 완료 전환(34MB E2E, Report(1) 되덮어쓰기 방지). 154/154 GREEN
This commit is contained in:
parent
69094595a5
commit
04ff0ff93d
7 changed files with 166 additions and 6 deletions
16
VideoDownloader.Mobile/ShareTarget.cs
Normal file
16
VideoDownloader.Mobile/ShareTarget.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace VideoDownloader.Mobile;
|
||||
|
||||
/// <summary>M1 공유 타겟(U1): 플랫폼(안드로이드 인텐트)이 전달한 공유 텍스트 큐.</summary>
|
||||
public static class ShareTarget
|
||||
{
|
||||
private static string? _pending;
|
||||
|
||||
public static void Deliver(string? sharedText)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(sharedText)) return;
|
||||
Volatile.Write(ref _pending, sharedText);
|
||||
}
|
||||
|
||||
/// <summary>대기 중 공유 텍스트를 꺼낸다(없으면 null).</summary>
|
||||
public static string? Consume() => Interlocked.Exchange(ref _pending, null);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue