
    i	                    b    S r SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
Jr  S	r " S
 S\5      rg)z:
Controller to interface with the DashCast app namespace.
    )annotations   )APP_DASHCAST)CastMessage)chain_on_success   )CallbackTypeBaseControllerzurn:x-cast:com.madmod.dashcastc                  t   ^  \ rS rSrSr\\4     SU 4S jjjrSS jrSSSS.         SS	 jjr	S
r
U =r$ )DashCastController   z3Controller to interact with DashCast app namespace.c                $   > [         TU ]  X5        g )N)super__init__)selfappNamespaceappId	__class__s      X/home/sebas/venvs/catt/lib/python3.13/site-packages/pychromecast/controllers/dashcast.pyr   DashCastController.__init__   s     	-    c                    g)a  
Called when a load complete message is received.

This is currently un-used by this controller. It is implemented
so that we don't get "Message unhandled" warnings. In the future
it might be used to update a public status object like the media
controller does.
T )r   _message_datas      r   receive_message"DashCastController.receive_message   s     r   Fr   N)forcereload_secondscallback_functionc               R   ^ ^^^ SUUU U4S jjnT R                  [        XT5      S9  g)z
Starts loading a URL with an optional reload time
in seconds.

Setting force to True may load pages which block
iframe embedding, but will prevent reload from
working and will cause calls to load_url()
to reload the app.
c                x   > T(       + =(       a    TS;  nU(       d  SOTS-  nTTUUS.nTR                  USU S9  g)z'Loads requested URL after app launched.)r   Nr   i  )urlr   reloadreload_timeT)inc_session_idr    N)send_message)r    should_reloadreload_millisecondsmsgr   r   r   r#   s       r   launch_callback4DashCastController.load_url.<locals>.launch_callback8   sS     %II.	*IM+8!nt>S'2	C D<M  r   )r    N)r    CallbackType | NonereturnNone)launchr   )r   r#   r   r   r    r+   s   ````  r   load_urlDashCastController.load_url&   s(    $	 	 	.R 	 	
r   r   )r   strr   r3   r.   r/   )r   r   r   dictr.   bool)
r#   r3   r   r5   r   floatr    r-   r.   r/   )__name__
__module____qualname____firstlineno____doc__APP_NAMESPACEr   r   r   r1   __static_attributes____classcell__)r   s   @r   r   r      sy    = #0l..8;.	. .

   !15#
#
 	#

 #
 /#
 
#
 #
r   r   N)r;   
__future__r   configr   generated.cast_channel_pb2r   response_handlerr    r	   r
   r<   r   r   r   r   <module>rD      s2    # ! 0 * 17
 7
r   