com.bugvm.apple.avfoundation.AVCaptureConnection Maven / Gradle / Ivy
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bugvm.apple.avfoundation;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.corefoundation.*;
import com.bugvm.apple.dispatch.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.coreimage.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coreaudio.*;
import com.bugvm.apple.coremedia.*;
import com.bugvm.apple.corevideo.*;
import com.bugvm.apple.mediatoolbox.*;
import com.bugvm.apple.audiotoolbox.*;
import com.bugvm.apple.audiounit.*;
/* */
/**/
/**
* @since Available in iOS 4.0 and later.
*/
/* */
/**/@Library("AVFoundation") @NativeClass/* */
/**/public/* */ class /**/AVCaptureConnection/* */
extends /**/NSObject/* */
/**//* */ {
/**/public static class AVCaptureConnectionPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(AVCaptureConnection.class); }/* */
/**//* */
/**/
public AVCaptureConnection() {}
protected AVCaptureConnection(SkipInit skipInit) { super(skipInit); }
/**
* @since Available in iOS 8.0 and later.
*/
public AVCaptureConnection(NSArray ports, AVCaptureOutput output) { super((SkipInit) null); initObject(init(ports, output)); }
/**
* @since Available in iOS 8.0 and later.
*/
public AVCaptureConnection(AVCaptureInputPort port, AVCaptureVideoPreviewLayer layer) { super((SkipInit) null); initObject(init(port, layer)); }
/* */
/**/
@Property(selector = "inputPorts")
public native NSArray getInputPorts();
@Property(selector = "output")
public native AVCaptureOutput getOutput();
/**
* @since Available in iOS 6.0 and later.
*/
@Property(selector = "videoPreviewLayer")
public native AVCaptureVideoPreviewLayer getVideoPreviewLayer();
@Property(selector = "isEnabled")
public native boolean isEnabled();
@Property(selector = "setEnabled:")
public native void setEnabled(boolean v);
@Property(selector = "isActive")
public native boolean isActive();
@Property(selector = "audioChannels")
public native NSArray getAudioChannels();
@Property(selector = "isVideoMirroringSupported")
public native boolean supportsVideoMirroring();
@Property(selector = "isVideoMirrored")
public native boolean isVideoMirrored();
@Property(selector = "setVideoMirrored:")
public native void setVideoMirrored(boolean v);
/**
* @since Available in iOS 6.0 and later.
*/
@Property(selector = "automaticallyAdjustsVideoMirroring")
public native boolean automaticallyAdjustsVideoMirroring();
/**
* @since Available in iOS 6.0 and later.
*/
@Property(selector = "setAutomaticallyAdjustsVideoMirroring:")
public native void setAutomaticallyAdjustsVideoMirroring(boolean v);
@Property(selector = "isVideoOrientationSupported")
public native boolean supportsVideoOrientation();
@Property(selector = "videoOrientation")
public native AVCaptureVideoOrientation getVideoOrientation();
@Property(selector = "setVideoOrientation:")
public native void setVideoOrientation(AVCaptureVideoOrientation v);
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@Property(selector = "isVideoMinFrameDurationSupported")
public native boolean supportsVideoMinFrameDuration();
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@Property(selector = "videoMinFrameDuration")
public native @ByVal CMTime getVideoMinFrameDuration();
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@Property(selector = "setVideoMinFrameDuration:")
public native void setVideoMinFrameDuration(@ByVal CMTime v);
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@Property(selector = "isVideoMaxFrameDurationSupported")
public native boolean supportsVideoMaxFrameDuration();
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@Property(selector = "videoMaxFrameDuration")
public native @ByVal CMTime getVideoMaxFrameDuration();
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@Property(selector = "setVideoMaxFrameDuration:")
public native void setVideoMaxFrameDuration(@ByVal CMTime v);
/**
* @since Available in iOS 5.0 and later.
*/
@Property(selector = "videoMaxScaleAndCropFactor")
public native @MachineSizedFloat double getVideoMaxScaleAndCropFactor();
/**
* @since Available in iOS 5.0 and later.
*/
@Property(selector = "videoScaleAndCropFactor")
public native @MachineSizedFloat double getVideoScaleAndCropFactor();
/**
* @since Available in iOS 5.0 and later.
*/
@Property(selector = "setVideoScaleAndCropFactor:")
public native void setVideoScaleAndCropFactor(@MachineSizedFloat double v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "preferredVideoStabilizationMode")
public native AVCaptureVideoStabilizationMode getPreferredVideoStabilizationMode();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setPreferredVideoStabilizationMode:")
public native void setPreferredVideoStabilizationMode(AVCaptureVideoStabilizationMode v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "activeVideoStabilizationMode")
public native AVCaptureVideoStabilizationMode getActiveVideoStabilizationMode();
/**
* @since Available in iOS 6.0 and later.
*/
@Property(selector = "isVideoStabilizationSupported")
public native boolean supportsVideoStabilization();
/**
* @since Available in iOS 6.0 and later.
* @deprecated Deprecated in iOS 8.0.
*/
@Deprecated
@Property(selector = "isVideoStabilizationEnabled")
public native boolean isVideoStabilizationEnabled();
/**
* @since Available in iOS 6.0 and later.
* @deprecated Deprecated in iOS 8.0.
*/
@Deprecated
@Property(selector = "enablesVideoStabilizationWhenAvailable")
public native boolean enablesVideoStabilizationWhenAvailable();
/**
* @since Available in iOS 6.0 and later.
* @deprecated Deprecated in iOS 8.0.
*/
@Deprecated
@Property(selector = "setEnablesVideoStabilizationWhenAvailable:")
public native void setEnablesVideoStabilizationWhenAvailable(boolean v);
/* */
/**//* */
/**/
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "initWithInputPorts:output:")
protected native @Pointer long init(NSArray ports, AVCaptureOutput output);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "initWithInputPort:videoPreviewLayer:")
protected native @Pointer long init(AVCaptureInputPort port, AVCaptureVideoPreviewLayer layer);
/* */
}