C# Class Poupou.AirPlay.UIAirPlayActivity

This is a UIActivity subclass that allows sending an UIImage to a specific AirPlay device. You only need to use the static GetCurrentActivities method to get UIActivity for each AirPlay device visible on the network. Everything else will be handled automagically. You might want ot customize/override the Image property to provide your own icon or change the Title property to show something else than the AirPlay device's name. Note: UIActivity is only available on iOS6 and later.
Inheritance: UIActivity
Exibir arquivo Open project: spouliot/airplay

Public Methods

Method Description
CanPerform ( NSObject activityItems ) : bool
GetCurrentActivities ( ) : UIActivity[]

Retrieve a UIActivity instance for each AirPlay device currently accessible on the network.

Perform ( ) : void
Prepare ( NSObject activityItems ) : void
UIAirPlayActivity ( NSNetService service ) : System.Collections.Generic

Private Methods

Method Description
GetIcon ( ) : UIKit.UIImage

Method Details

CanPerform() public method

public CanPerform ( NSObject activityItems ) : bool
activityItems NSObject
return bool

GetCurrentActivities() public static method

Retrieve a UIActivity instance for each AirPlay device currently accessible on the network.
public static GetCurrentActivities ( ) : UIActivity[]
return UIActivity[]

Perform() public method

public Perform ( ) : void
return void

Prepare() public method

public Prepare ( NSObject activityItems ) : void
activityItems NSObject
return void

UIAirPlayActivity() public method

public UIAirPlayActivity ( NSNetService service ) : System.Collections.Generic
service NSNetService
return System.Collections.Generic