Skip to content

Commit

Permalink
Added RSH3e3d instead of mutating RSH3e3a.
Browse files Browse the repository at this point in the history
Added optional new `updatedCallback:` callback.
  • Loading branch information
maratal committed Jul 20, 2023
1 parent 79cf7b9 commit 08294c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions textile/features.textile
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,8 @@ h3(#activation-state-machine). Activation State Machine
**** @(RSH3e2a)@ Transitions to @WaitingForNewPushDeviceDetails@.
*** @(RSH3e3)@ On event @SyncRegistrationFailed@:
**** @(RSH3e3c)@ If the machine is in state @WaitingForRegistrationSync@ as a result of a @CalledActivate@ event, make @Push#activate@ return or call its callback with the error.
**** @(RSH3e3a)@ Otherwise, calls the @updatedCallback@ provided to @Push#activate@ with the error.
**** @(RSH3e3a)@ (deprecated) Otherwise, calls the @updateFailedCallback@ provided to @Push#activate@ with the error.
**** @(RSH3e3d)@ Otherwise, calls the @updatedCallback@ provided to @Push#activate@ with the error.
**** @(RSH3e3b)@ Transitions to @AfterRegistrationSyncFailed@.
** @(RSH3f)@ State @AfterRegistrationSyncFailed@:
*** @(RSH3f1)@ On events @CalledActivate@ or @GotPushDeviceDetails@:
Expand Down Expand Up @@ -2323,7 +2324,8 @@ class Push: RSH1, RSH2
registerCallback: ((ErrorInfo?, DeviceDetails?) -> io String)?,
// Only on platforms that, after first set, can update later its push
// device details:
updateFailedCallback: ((ErrorInfo) ->)
updatedCallback: ((ErrorInfo) ->)?,
updateFailedCallback: ((ErrorInfo) ->) // Deprecated, see RSH3e3a and RSH3e3d
) => io ErrorInfo? // RSH2a
deactivate(
deregisterCallback: ((ErrorInfo?, deviceId: String?) -> io)?
Expand Down

0 comments on commit 08294c0

Please sign in to comment.