SystemExtensionUninstall

public enum SystemExtensionUninstall

The website Mac build’s “Uninstall Speedify…”, as decisions. Public because the app, not the SDK, runs the uninstall:

wipe the daemon’s state (RPC, or one start carrying wipeStartOptionKey) -> deactivate the system extension -> remove our VPN profiles -> clear the app’s own state -> reveal the app and quit

The daemon’s account and settings live in the root system extension’s container, which deactivation leaves behind and the app cannot reach, so the wipe has to happen while the extension is still installed.

  • Declaration

    Swift

    public enum Step : Equatable
  • Declaration

    Swift

    public enum StepOutcome : Equatable
  • Declaration

    Swift

    public enum DeactivationResult : Equatable
  • Declaration

    Swift

    public enum NextStep : Equatable
  • Declaration

    Swift

    public static let extensionIdentifier: String
  • Start option that turns a tunnel start into a daemon-state wipe. NE start options reach the root extension; the app group does not.

    Declaration

    Swift

    public static let wipeStartOptionKey: String
  • Declaration

    Swift

    public static let wipeRequestIDKey: String
  • How long to wait for the clear_settings reply. The daemon has to confirm it stopped before it wipes, which is usually well under this.

    Declaration

    Swift

    public static let clearSettingsReplyCap: TimeInterval
  • How long to wait for the tunnel to stop, and for the wipe start to end. Daemon shutdown and launchd’s short-process respawn throttle can each take 10 seconds. A five-second cap could cancel the wipe before it ran.

    Declaration

    Swift

    public static let tunnelDownCap: TimeInterval
  • The provider’s test: only an explicit true asks for the wipe.

    Declaration

    Swift

    public static func isWipeStart(_ options: [String : Any]?) -> Bool
  • Returned through NEVPNConnection.fetchLastDisconnectError. Put the attempt ID in the domain rather than relying on custom userInfo surviving IPC. An older attempt’s result must never confirm a new wipe.

    Declaration

    Swift

    public static func wipeCompletionError(requestID: String, succeeded: Bool) -> NSError
  • Declaration

    Swift

    public static func wipeOutcome(error: Error?, requestID: String) -> StepOutcome
  • Deactivation is a boundary: its delegate decides whether cleanup may begin. Wipe failures still allow deactivation, but must be shown in the final summary. A failed deactivation preserves profiles and local state.

    Declaration

    Swift

    public static func step(after step: Step, _ outcome: StepOutcome) -> Step?
  • Declaration

    Swift

    public static func nextStep(after result: DeactivationResult) -> NextStep