|  | @@ -1,40 +0,0 @@
 | 
	
		
			
			| 1 |  | -package com.reactnativecommunity.webview.events;
 | 
	
		
			
			| 2 |  | -
 | 
	
		
			
			| 3 |  | -import com.facebook.react.bridge.Arguments;
 | 
	
		
			
			| 4 |  | -import com.facebook.react.bridge.WritableMap;
 | 
	
		
			
			| 5 |  | -import com.facebook.react.uimanager.events.Event;
 | 
	
		
			
			| 6 |  | -import com.facebook.react.uimanager.events.RCTEventEmitter;
 | 
	
		
			
			| 7 |  | -
 | 
	
		
			
			| 8 |  | -public class TopShouldStartLoadWithRequestEvent extends Event<TopMessageEvent> {
 | 
	
		
			
			| 9 |  | -    public static final String EVENT_NAME = "topShouldStartLoadWithRequest";
 | 
	
		
			
			| 10 |  | -    private final String mUrl;
 | 
	
		
			
			| 11 |  | -
 | 
	
		
			
			| 12 |  | -    public TopShouldStartLoadWithRequestEvent(int viewId, String url) {
 | 
	
		
			
			| 13 |  | -        super(viewId);
 | 
	
		
			
			| 14 |  | -        mUrl = url;
 | 
	
		
			
			| 15 |  | -    }
 | 
	
		
			
			| 16 |  | -
 | 
	
		
			
			| 17 |  | -    @Override
 | 
	
		
			
			| 18 |  | -    public String getEventName() {
 | 
	
		
			
			| 19 |  | -        return EVENT_NAME;
 | 
	
		
			
			| 20 |  | -    }
 | 
	
		
			
			| 21 |  | -
 | 
	
		
			
			| 22 |  | -    @Override
 | 
	
		
			
			| 23 |  | -    public boolean canCoalesce() {
 | 
	
		
			
			| 24 |  | -        return false;
 | 
	
		
			
			| 25 |  | -    }
 | 
	
		
			
			| 26 |  | -
 | 
	
		
			
			| 27 |  | -    @Override
 | 
	
		
			
			| 28 |  | -    public short getCoalescingKey() {
 | 
	
		
			
			| 29 |  | -        // All events for a given view can be coalesced.
 | 
	
		
			
			| 30 |  | -        return 0;
 | 
	
		
			
			| 31 |  | -    }
 | 
	
		
			
			| 32 |  | -
 | 
	
		
			
			| 33 |  | -    @Override
 | 
	
		
			
			| 34 |  | -    public void dispatch(RCTEventEmitter rctEventEmitter) {
 | 
	
		
			
			| 35 |  | -        WritableMap data = Arguments.createMap();
 | 
	
		
			
			| 36 |  | -        data.putString("url", mUrl);
 | 
	
		
			
			| 37 |  | -        data.putString("navigationType", "other");
 | 
	
		
			
			| 38 |  | -        rctEventEmitter.receiveEvent(getViewTag(), EVENT_NAME, data);
 | 
	
		
			
			| 39 |  | -    }
 | 
	
		
			
			| 40 |  | -}
 |