/** * Unregisters a previously registered observer. * @param observer the previously registered observer. */ public static void unregister(PurchaseObserver observer) { sPurchaseObserver = null; }
/** * Registers an observer that updates the UI. * @param observer the observer to register */ public static void register(PurchaseObserver observer) { sPurchaseObserver = observer; }